Merge pull request #10407 from JosJuice/android-reset-callback

Android: Call OnConfigChanged when resetting a setting
This commit is contained in:
Mai M 2022-02-26 11:24:18 -05:00 committed by GitHub
commit c474db9301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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