mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-11-27 04:10:16 +00:00
android: Save global config synchronously in onCloseGameFoldersFragment
Could cause multiple global saves at once that went untracked previously
This commit is contained in:
parent
fa04dea7c4
commit
39d28a5131
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue