android: Don't save settings on config destruction

Android doesn't have a proper way of destroying its config object so it's best to stick to the built-in methods to control saving config
This commit is contained in:
t895 2024-01-03 21:38:29 -05:00
parent 148ad0cf0b
commit 1c278974a8
2 changed files with 0 additions and 7 deletions

View File

@ -14,12 +14,6 @@ AndroidConfig::AndroidConfig(const std::string& config_name, ConfigType config_t
}
}
AndroidConfig::~AndroidConfig() {
if (global) {
AndroidConfig::SaveAllValues();
}
}
void AndroidConfig::ReloadAllValues() {
Reload();
ReadAndroidValues();

View File

@ -9,7 +9,6 @@ class AndroidConfig final : public Config {
public:
explicit AndroidConfig(const std::string& config_name = "config",
ConfigType config_type = ConfigType::GlobalConfig);
~AndroidConfig() override;
void ReloadAllValues() override;
void SaveAllValues() override;