mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
19 lines
474 B
Dart
19 lines
474 B
Dart
import 'package:injectable/injectable.dart';
|
|
import 'package:revanced_manager/models/patch.dart';
|
|
import 'package:revanced_manager/models/patched_application.dart';
|
|
import 'package:stacked/stacked.dart';
|
|
|
|
@lazySingleton
|
|
class PatcherViewModel extends BaseViewModel {
|
|
PatchedApplication? selectedApp;
|
|
List<Patch> selectedPatches = [];
|
|
|
|
bool showPatchButton() {
|
|
return selectedPatches.isNotEmpty;
|
|
}
|
|
|
|
bool dimPatchesCard() {
|
|
return selectedApp == null;
|
|
}
|
|
}
|