mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 12:47:37 +02:00
feat: Hide the Install button during installation (#1633)
Co-authored-by: Ushie <ushiekane@gmail.com>
This commit is contained in:

committed by
GitHub

parent
28d6ab692e
commit
3e696d6847
@ -37,6 +37,7 @@ class InstallerViewModel extends BaseViewModel {
|
||||
String headerLogs = '';
|
||||
bool isRooted = false;
|
||||
bool isPatching = true;
|
||||
bool isInstalling = false;
|
||||
bool isInstalled = false;
|
||||
bool hasErrors = false;
|
||||
bool isCanceled = false;
|
||||
@ -437,6 +438,7 @@ class InstallerViewModel extends BaseViewModel {
|
||||
}
|
||||
|
||||
Future<void> installResult(BuildContext context, bool installAsRoot) async {
|
||||
isInstalling = true;
|
||||
try {
|
||||
_app.isRooted = installAsRoot;
|
||||
if (headerLogs != 'Installing...') {
|
||||
@ -486,6 +488,7 @@ class InstallerViewModel extends BaseViewModel {
|
||||
print(e);
|
||||
}
|
||||
}
|
||||
isInstalling = false;
|
||||
}
|
||||
|
||||
void exportResult() {
|
||||
|
Reference in New Issue
Block a user