From c006482feb44be69e300bd075c4a952123b47ee2 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 24 Sep 2023 20:09:43 -0400 Subject: [PATCH] Add SETTINGS_MANAGER::GetUserSettingsPath back because swig --- common/settings/settings_manager.cpp | 6 ++++++ include/settings/settings_manager.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/common/settings/settings_manager.cpp b/common/settings/settings_manager.cpp index 66e0a49e6c..a221734500 100644 --- a/common/settings/settings_manager.cpp +++ b/common/settings/settings_manager.cpp @@ -1348,3 +1348,9 @@ bool SETTINGS_MANAGER::TriggerBackupIfNeeded( REPORTER& aReporter ) const return BackupProject( aReporter ); } + + +wxString SETTINGS_MANAGER::GetUserSettingsPath() +{ + return PATHS::GetUserSettingsPath(); +} \ No newline at end of file diff --git a/include/settings/settings_manager.h b/include/settings/settings_manager.h index aa21509560..bf390084b7 100644 --- a/include/settings/settings_manager.h +++ b/include/settings/settings_manager.h @@ -336,6 +336,10 @@ public: */ static std::string GetSettingsVersion(); + /** + * A proxy for PATHS::GetUserSettingsPath rather than fighting swig + */ + static wxString GetUserSettingsPath(); private: JSON_SETTINGS* registerSettings( JSON_SETTINGS* aSettings, bool aLoadNow = true );