mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
+ chg: minor fixes for saving styles ...
This commit is contained in:
parent
4cb6b0e4ec
commit
beea99aff6
@ -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);
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user