mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: close installer after opening patched app
This commit is contained in:
parent
092d645726
commit
9317714651
@ -17,8 +17,14 @@ class InstallerView extends StatelessWidget {
|
||||
floatingActionButton: Visibility(
|
||||
visible: !model.isPatching,
|
||||
child: FloatingActionButton.extended(
|
||||
onPressed: () =>
|
||||
model.isInstalled ? model.openApp() : model.installResult(),
|
||||
onPressed: () {
|
||||
if (model.isInstalled) {
|
||||
model.openApp();
|
||||
Navigator.of(context).pop();
|
||||
} else {
|
||||
model.installResult();
|
||||
}
|
||||
},
|
||||
label: I18nText(model.isInstalled
|
||||
? 'installerView.fabOpenButton'
|
||||
: 'installerView.fabInstallButton'),
|
||||
|
Loading…
Reference in New Issue
Block a user