Add SETTINGS_MANAGER::GetUserSettingsPath back because swig

This commit is contained in:
Marek Roszko 2023-09-24 20:09:43 -04:00
parent 91450c22cc
commit c006482feb
2 changed files with 10 additions and 0 deletions

View File

@ -1348,3 +1348,9 @@ bool SETTINGS_MANAGER::TriggerBackupIfNeeded( REPORTER& aReporter ) const
return BackupProject( aReporter ); return BackupProject( aReporter );
} }
wxString SETTINGS_MANAGER::GetUserSettingsPath()
{
return PATHS::GetUserSettingsPath();
}

View File

@ -336,6 +336,10 @@ public:
*/ */
static std::string GetSettingsVersion(); static std::string GetSettingsVersion();
/**
* A proxy for PATHS::GetUserSettingsPath rather than fighting swig
*/
static wxString GetUserSettingsPath();
private: private:
JSON_SETTINGS* registerSettings( JSON_SETTINGS* aSettings, bool aLoadNow = true ); JSON_SETTINGS* registerSettings( JSON_SETTINGS* aSettings, bool aLoadNow = true );