Skip to content

Commit

Permalink
manager: Fix install button in module page
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Mar 1, 2023
1 parent 203dc42 commit 0b1b73a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ fun ModuleScreen(navigator: DestinationsNavigator) {
val isSafeMode = Natives.isSafeMode()
val hasMagisk = hasMagisk()

val showInstallButton = !(isSafeMode || hasMagisk)
val hideInstallButton = isSafeMode || hasMagisk

Scaffold(topBar = {
TopBar()
}, floatingActionButton = if (showInstallButton) {
}, floatingActionButton = if (hideInstallButton) {
{ /* Empty */ }
} else {
{
Expand Down

0 comments on commit 0b1b73a

Please sign in to comment.