Kick the wildcards and file exts into a static class, export it from kicommon

This commit is contained in:
Marek Roszko
2023-12-27 21:10:01 -05:00
parent 5e7a68fcd9
commit 9a890cdba9
105 changed files with 722 additions and 686 deletions
+3 -3
View File
@@ -356,7 +356,7 @@ void ReadHotKeyConfig( const wxString& aFileName,
if( fileName.IsEmpty() )
{
wxFileName fn( wxS( "user" ) );
fn.SetExt( HotkeyFileExtension );
fn.SetExt( FILEEXT::HotkeyFileExtension );
fn.SetPath( PATHS::GetUserSettingsPath() );
fileName = fn.GetFullPath();
}
@@ -411,7 +411,7 @@ int WriteHotKeyConfig( const std::vector<TOOL_ACTION*>& aActions )
std::map<std::string, std::pair<int, int>> hotkeys;
wxFileName fn( "user" );
fn.SetExt( HotkeyFileExtension );
fn.SetExt( FILEEXT::HotkeyFileExtension );
fn.SetPath( PATHS::GetUserSettingsPath() );
// Read the existing config (all hotkeys)
@@ -458,7 +458,7 @@ int ReadLegacyHotkeyConfigFile( const wxString& aFilename, std::map<std::string,
{
wxFileName fn( aFilename );
fn.SetExt( HotkeyFileExtension );
fn.SetExt( FILEEXT::HotkeyFileExtension );
fn.SetPath( PATHS::GetUserSettingsPath() );
if( !wxFile::Exists( fn.GetFullPath() ) )