Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Commit

Permalink
优化检查更新的交互
Browse files Browse the repository at this point in the history
  • Loading branch information
tangshimin committed Jun 25, 2022
1 parent 71fcd2d commit c1899a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/kotlin/dialog/UpdateDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import kotlinx.serialization.json.Json
import okhttp3.OkHttpClient
import okhttp3.Request
import java.io.IOException
import java.util.*
import kotlin.concurrent.schedule

@OptIn(ExperimentalSerializationApi::class)
@Composable
Expand Down Expand Up @@ -88,7 +90,9 @@ fun UpdateDialog(
}

LaunchedEffect(Unit) {
detectingUpdates(version)
Timer("update",false).schedule(500){
detectingUpdates(version)
}
}

Column(
Expand Down

0 comments on commit c1899a7

Please sign in to comment.