mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
commit
06650d9d12
@ -2157,15 +2157,12 @@ bool SaveAllSettings(bool bForceSaveSettings)
|
||||
}
|
||||
}
|
||||
|
||||
Style_ToIniSection(bForceSaveSettings);
|
||||
Style_FileExtToIniSection(bForceSaveSettings);
|
||||
|
||||
if (GetModeThemeIndex() == 1) {
|
||||
Style_SaveSettings(bForceSaveSettings);
|
||||
}
|
||||
|
||||
ok = CloseSettingsFile(true, bOpenedByMe); // reset/clear cache
|
||||
|
||||
// separate INI files for Style-Themes
|
||||
// maybe separate INI files for Style-Themes
|
||||
if (GetModeThemeIndex() >= 2) {
|
||||
Style_SaveSettings(bForceSaveSettings);
|
||||
}
|
||||
|
||||
@ -10358,6 +10358,9 @@ bool FileSave(bool bSaveAlways, bool bAsk, bool bSaveAs, bool bSaveCopy, bool bP
|
||||
if (SaveFileDlg(Globals.hwndMain, tchFile, COUNTOF(tchFile), StrIsNotEmpty(tchInitialDir) ? tchInitialDir : NULL)) {
|
||||
|
||||
if (!bSaveCopy) {
|
||||
if (bSaveAs) {
|
||||
SaveAllSettings(false); // session on old file ends, save side-by-side settings
|
||||
}
|
||||
InstallFileWatching(false);
|
||||
}
|
||||
fSuccess = FileIO(false, tchFile, &fioStatus, true, true, false, true, bSaveCopy, bPreserveTimeStamp);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user