commit 2b9554cf61f92f0c0881a8f00ddfde960de98e4f
parent 28630f9bdf14dac3fa00328396a72b8d03627d52
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date: Tue, 31 Oct 2023 14:49:49 +0100
fix(manager/sc_patch_tab): restore original
Diffstat:
1 file changed, 16 insertions(+), 18 deletions(-)
diff --git a/manager/src/main/kotlin/me/rhunk/snapenhance/manager/ui/tab/impl/download/SnapchatPatchTab.kt b/manager/src/main/kotlin/me/rhunk/snapenhance/manager/ui/tab/impl/download/SnapchatPatchTab.kt
@@ -299,27 +299,25 @@ class SnapchatPatchTab : Tab("snapchat_download") {
}
}
- if (isInstalledSnapchatPatched) {
- Text("Restore Snapchat", modifier = Modifier.padding(20.dp))
+ Text("Restore Snapchat", modifier = Modifier.padding(20.dp))
+ Button(
+ modifier = Modifier.fillMaxWidth(),
+ enabled = selectedSnapchatVersion != null,
+ onClick = {
+ navigation.navigateTo(LSPatchTab::class, args = Bundle().apply {
+ putParcelable("downloadItem", selectedSnapchatVersion)
+ }, noHistory = true)
+ }
+ ) {
+ Text("Install/Restore Original Snapchat")
+ }
+
+ if (isInstalledSnapchatPatched && isSnapchatNotSplitConfig) {
Button(
modifier = Modifier.fillMaxWidth(),
- enabled = selectedSnapchatVersion != null,
- onClick = {
- navigation.navigateTo(LSPatchTab::class, args = Bundle().apply {
- putParcelable("downloadItem", selectedSnapchatVersion)
- }, noHistory = true)
- }
+ onClick = { showRestoreMenuDialog = true }
) {
- Text("Install/Restore Original Snapchat")
- }
-
- if (isSnapchatNotSplitConfig) {
- Button(
- modifier = Modifier.fillMaxWidth(),
- onClick = { showRestoreMenuDialog = true }
- ) {
- Text("Restore Snapchat from existing installation")
- }
+ Text("Restore Snapchat from existing installation")
}
}
}