0
0
mirror of https://github.com/Ishan09811/pine.git synced 2025-04-28 09:35:08 +00:00

Update GameSettingsFragment.kt

This commit is contained in:
Ishan09811 2025-01-02 12:43:13 +05:30 committed by GitHub
parent 79ed0bb936
commit 0da0ffe812
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,14 +50,6 @@ class GameSettingsFragment : PreferenceFragmentCompat() {
findPreference("category_debug")
).forEach { it?.dependency = "use_custom_settings" }
// Uncheck `disable_frame_throttling` if `force_triple_buffering` gets disabled
val disableFrameThrottlingPref = findPreference<TwoStatePreference>("disable_frame_throttling")!!
findPreference<TwoStatePreference>("force_triple_buffering")?.setOnPreferenceChangeListener { _, newValue ->
if (newValue == false)
disableFrameThrottlingPref.isChecked = false
true
}
// Only show validation layer setting in debug builds
@Suppress("SENSELESS_COMPARISON")
if (BuildConfig.BUILD_TYPE != "release")