Android: Call OnConfigChanged when resetting a setting

Otherwise the value of the setting won't be updated properly.
This commit is contained in:
JosJuice 2022-01-29 15:48:34 +01:00
parent af5678ea75
commit 7f32057e91

View file

@ -147,7 +147,10 @@ Java_org_dolphinemu_dolphinemu_features_settings_model_NativeConfig_deleteKey(
JNIEnv* env, jclass, jint layer, jstring file, jstring section, jstring key)
{
const Config::Location location = GetLocation(env, file, section, key);
return static_cast<jboolean>(GetLayer(layer, location)->DeleteKey(location));
const bool had_value = GetLayer(layer, location)->DeleteKey(location);
if (had_value)
Config::OnConfigChanged();
return static_cast<jboolean>(had_value);
}
JNIEXPORT jstring JNICALL