Skip to content

Commit

Permalink
feat(ui): if failed then try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico040 committed May 10, 2024
1 parent 0622f76 commit d6b65dd
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import dev.beefers.vendetta.manager.ui.widgets.dialog.BackWarningDialog
import dev.beefers.vendetta.manager.ui.widgets.dialog.DownloadFailedDialog
import dev.beefers.vendetta.manager.ui.widgets.installer.StepGroupCard
import dev.beefers.vendetta.manager.utils.DiscordVersion
import dev.beefers.vendetta.manager.utils.navigate
import okhttp3.internal.toImmutableList
import org.koin.androidx.compose.get
import org.koin.core.parameter.parametersOf
Expand Down Expand Up @@ -155,6 +156,17 @@ class InstallerScreen(
) {
Text(stringResource(R.string.action_launch))
}
} else {
// Show retry if fail
Button(
onClick = {
nav.pop()
nav.navigate(InstallerScreen(version))
},
modifier = Modifier.fillMaxWidth()
) {
Text(stringResource(R.string.action_retry))
}
}

Spacer(modifier = Modifier.height(8.dp))
Expand Down

0 comments on commit d6b65dd

Please sign in to comment.