diff options
author | t895 <clombardo169@gmail.com> | 2024-01-04 03:40:10 +0100 |
---|---|---|
committer | t895 <clombardo169@gmail.com> | 2024-01-04 04:50:21 +0100 |
commit | 39d28a51317bbb352cbd51f9e019011b7fd63d9d (patch) | |
tree | bf9271ad969efe9678b37de49ea65cb4501f1e2e /src | |
parent | frontend_common: config: Only write setting related to opened config file (diff) | |
download | yuzu-39d28a51317bbb352cbd51f9e019011b7fd63d9d.tar yuzu-39d28a51317bbb352cbd51f9e019011b7fd63d9d.tar.gz yuzu-39d28a51317bbb352cbd51f9e019011b7fd63d9d.tar.bz2 yuzu-39d28a51317bbb352cbd51f9e019011b7fd63d9d.tar.lz yuzu-39d28a51317bbb352cbd51f9e019011b7fd63d9d.tar.xz yuzu-39d28a51317bbb352cbd51f9e019011b7fd63d9d.tar.zst yuzu-39d28a51317bbb352cbd51f9e019011b7fd63d9d.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt index d19f20dc2..5ae05b5cc 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt @@ -167,13 +167,14 @@ class GamesViewModel : ViewModel() { } } - fun onCloseGameFoldersFragment() = + fun onCloseGameFoldersFragment() { + NativeConfig.saveGlobalConfig() viewModelScope.launch { withContext(Dispatchers.IO) { - NativeConfig.saveGlobalConfig() getGameDirs(true) } } + } private fun getGameDirs(reloadList: Boolean = false) { val gameDirs = NativeConfig.getGameDirs() |