Skip to content

Commit

Permalink
Fix bug causing app to close before opening login website on UWP
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Sep 26, 2023
1 parent d46dfcf commit 5973806
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions app/desktop/src/commonMain/kotlin/AuthorizationScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ fun AuthorizationScreen(uwp: Boolean, alreadyWaiting: Boolean, onAuth: () -> Uni
}

launchUri(href(Route.Auth(protocol), URLBuilder(getUrl())).build().toURI())
}
if (uwp) {
exitProcess(0)
} else {
SideEffect {
if (uwp) {
exitProcess(0)
} else {
startAuthorizationServer(onAuth)
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {

allprojects {
group = "dev.schlaubi.tonbrett"
version = "1.14.19"
version = "1.14.20"

repositories {
mavenCentral()
Expand Down

0 comments on commit 5973806

Please sign in to comment.