fix: clean patcher view after opening app from installer

This commit is contained in:
Alberto Ponces 2022-08-31 09:33:32 +01:00
parent 915a85a2f0
commit 3a7e7679f3

View File

@ -82,7 +82,9 @@ class InstallerView extends StatelessWidget {
), ),
Padding( Padding(
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
vertical: 16, horizontal: 0), vertical: 16,
horizontal: 0,
),
child: Visibility( child: Visibility(
visible: !model.isPatching, visible: !model.isPatching,
child: Row( child: Row(
@ -103,6 +105,7 @@ class InstallerView extends StatelessWidget {
onPressed: () { onPressed: () {
if (model.isInstalled) { if (model.isInstalled) {
model.openApp(); model.openApp();
model.cleanPatcher();
Navigator.of(context).pop(); Navigator.of(context).pop();
} else { } else {
model.installResult(); model.installResult();