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:
parent
79ed0bb936
commit
0da0ffe812
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user