+ chg: minor fixes for saving styles ...

This commit is contained in:
Rainer Kottenhoff 2019-03-15 21:30:14 +01:00
parent 4cb6b0e4ec
commit beea99aff6
3 changed files with 4 additions and 4 deletions

View File

@ -7769,7 +7769,7 @@ void SaveSettings(bool bSaveSettingsNow)
FreeMem(pIniSection);
}
Style_Save(); // Scintilla Styles
Style_Save(Theme_Files[s_idxSelectedTheme].szFilePath); // Scintilla Styles
int ResX, ResY;
GetCurrentMonitorResolution(Globals.hwndMain, &ResX, &ResY);

View File

@ -406,9 +406,9 @@ bool Style_ImportFromFile(const WCHAR* szFile, bool bDefaultGuard)
//
// Style_Save()
//
void Style_Save()
void Style_Save(LPCWCH szFile)
{
Style_ExportToFile(Globals.IniFile, false);
Style_ExportToFile(szFile, false);
}

View File

@ -33,7 +33,7 @@
void Style_Load();
bool Style_Import(HWND hwnd);
bool Style_ImportFromFile(const WCHAR* szFile, bool bDefaultGuard);
void Style_Save();
void Style_Save(LPCWCH szFile);
bool Style_Export(HWND hwnd);
DWORD Style_ExportToFile(const WCHAR* szFile, bool bForceAll);