Skip to content

Commit

Permalink
修复没有跳转到欢迎页, close #936
Browse files Browse the repository at this point in the history
其实一直都有 bug, 只是在我们启动时会读取配置 (增加启动时间) 后就稳定复现
  • Loading branch information
Him188 committed Sep 14, 2024
1 parent 16cd1c1 commit fc49da6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/shared/src/commonMain/kotlin/platform/AppStartupTasks.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (C) 2024 OpenAni and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license, which can be found at the following link.
*
* https://github.com/open-ani/ani/blob/main/LICENSE
*/

package me.him188.ani.app.platform

import kotlinx.coroutines.Dispatchers
Expand All @@ -15,6 +24,7 @@ object AppStartupTasks {
try {
sessionManager.requireAuthorize(
onLaunch = {
navigator.awaitNavController()
withContext(Dispatchers.Main) {
navigator.navigateWelcome()
}
Expand Down

0 comments on commit fc49da6

Please sign in to comment.