mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-28 20:40:13 +02:00
fix(manager/sc_patch_tab): restore original
This commit is contained in:
parent
28630f9bdf
commit
2b9554cf61
@ -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(
|
Button(
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
enabled = selectedSnapchatVersion != null,
|
onClick = { showRestoreMenuDialog = true }
|
||||||
onClick = {
|
|
||||||
navigation.navigateTo(LSPatchTab::class, args = Bundle().apply {
|
|
||||||
putParcelable("downloadItem", selectedSnapchatVersion)
|
|
||||||
}, noHistory = true)
|
|
||||||
}
|
|
||||||
) {
|
) {
|
||||||
Text("Install/Restore Original Snapchat")
|
Text("Restore Snapchat from existing installation")
|
||||||
}
|
|
||||||
|
|
||||||
if (isSnapchatNotSplitConfig) {
|
|
||||||
Button(
|
|
||||||
modifier = Modifier.fillMaxWidth(),
|
|
||||||
onClick = { showRestoreMenuDialog = true }
|
|
||||||
) {
|
|
||||||
Text("Restore Snapchat from existing installation")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user