Update healthcheck policy

This commit is contained in:
chen08209
2024-05-06 10:32:39 +08:00
parent feb9688a29
commit 9aa9180f1f
13 changed files with 273 additions and 68 deletions

View File

@@ -22,6 +22,7 @@ class AppState with ChangeNotifier {
String _currentLabel;
SystemColorSchemes _systemColorSchemes;
List<Group> _groups;
num _sortNum;
AppState()
: _navigationItems = [],
@@ -32,6 +33,7 @@ class AppState with ChangeNotifier {
_logs = [],
_groups = [],
_packages = [],
_sortNum = 0,
_systemColorSchemes = SystemColorSchemes();
String get currentLabel => _currentLabel;
@@ -159,6 +161,15 @@ class AppState with ChangeNotifier {
}
}
num get sortNum => _sortNum;
set sortNum(num value) {
if (_sortNum != value) {
_sortNum = value;
notifyListeners();
}
}
List<Group> getCurrentGroups(Mode mode) {
switch (mode) {
case Mode.direct: