diff --git a/include/settings/settings_manager.h b/include/settings/settings_manager.h index e3b81511f8..961a69e9a4 100644 --- a/include/settings/settings_manager.h +++ b/include/settings/settings_manager.h @@ -85,7 +85,10 @@ public: template AppSettings* GetAppSettings( bool aLoadNow = true ) { - AppSettings* ret = nullptr; + static AppSettings* ret = nullptr; + + if( ret ) + return ret; auto it = std::find_if( m_settings.begin(), m_settings.end(), []( const std::unique_ptr& aSettings )