Fix sad panda check on login

This commit is contained in:
FooIbar authored and tarsin committed 2023-07-14 18:18:58 +08:00
1 parent c867a74aea
commit 92b9b9879c
1 file changed
+3 -1
@@ -34,8 +34,10 @@ suspend fun postLogin() = coroutineScope {
// Sad panda check
Settings.gallerySite = EhUrl.SITE_EX
EhEngine.getUConfig()
// Explicitly use ex url since https://github.com/Ehviewer-Overhauled/Ehviewer/issues/1239#issuecomment-1632584525
EhEngine.getUConfig(EhUrl.URL_UCONFIG_EX)
}.onFailure {
Settings.gallerySite = EhUrl.SITE_E
Settings.needSignIn = false
}.isSuccess
}