mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 12:47:37 +02:00
fix: close installer after opening patched app
This commit is contained in:
@ -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'),
|
||||
|
Reference in New Issue
Block a user