Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit 04dce78

Browse files
committed
修复一个卡顿问题
1 parent e62f55b commit 04dce78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/io/github/mzdluo123/mirai/android/ui/plugin/PluginViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class PluginViewModel : ViewModel() {
5454
}
5555

5656
fun refreshPluginList() {
57-
viewModelScope.launch {
57+
viewModelScope.launch(Dispatchers.IO) {
5858
pluginList.postValue(loadPluginList())
5959
}
6060
}

0 commit comments

Comments
 (0)