mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-18 21:02:45 +01:00
android: Reload global settings on closing emulation
UI like the driver manager expects the global settings to be loaded when in the MainActivity so we reload global config to properly reset state on exit.
This commit is contained in:
parent
bd8635e26a
commit
6a4b25699d
1 changed files with 1 additions and 0 deletions
|
@ -301,6 +301,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
|||
|
||||
R.id.menu_exit -> {
|
||||
emulationState.stop()
|
||||
NativeConfig.reloadGlobalConfig()
|
||||
emulationViewModel.setIsEmulationStopping(true)
|
||||
binding.drawerLayout.close()
|
||||
binding.inGameMenu.requestFocus()
|
||||
|
|
Loading…
Reference in a new issue