Skip to content
Permalink
Browse files
Merge pull request #10407 from JosJuice/android-reset-callback
Android: Call OnConfigChanged when resetting a setting
  • Loading branch information
lioncash committed Feb 26, 2022
2 parents 0965724 + 7f32057 commit c474db9
Showing 1 changed file with 4 additions and 1 deletion.
@@ -151,7 +151,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

0 comments on commit c474db9

Please sign in to comment.