This commit is contained in:
parent
196d721005
commit
c82f07056d
@ -109,16 +109,16 @@ class MountList with ChangeNotifier {
|
||||
}
|
||||
|
||||
Future<void> reset() async {
|
||||
_mountList = [];
|
||||
notifyListeners();
|
||||
|
||||
_fetch();
|
||||
|
||||
if (constants.navigatorKey.currentContext == null ||
|
||||
ModalRoute.of(constants.navigatorKey.currentContext!)?.settings.name !=
|
||||
'/') {
|
||||
constants.navigatorKey.currentState?.pushReplacementNamed('/');
|
||||
}
|
||||
|
||||
_mountList = [];
|
||||
notifyListeners();
|
||||
|
||||
return _fetch();
|
||||
}
|
||||
|
||||
void remove(String name) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user