refactor
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...

This commit is contained in:
Scott E. Graves 2025-03-15 13:20:53 -05:00
parent 196d721005
commit c82f07056d

View File

@ -109,16 +109,16 @@ class MountList with ChangeNotifier {
} }
Future<void> reset() async { Future<void> reset() async {
_mountList = [];
notifyListeners();
_fetch();
if (constants.navigatorKey.currentContext == null || if (constants.navigatorKey.currentContext == null ||
ModalRoute.of(constants.navigatorKey.currentContext!)?.settings.name != ModalRoute.of(constants.navigatorKey.currentContext!)?.settings.name !=
'/') { '/') {
constants.navigatorKey.currentState?.pushReplacementNamed('/'); constants.navigatorKey.currentState?.pushReplacementNamed('/');
} }
_mountList = [];
notifyListeners();
return _fetch();
} }
void remove(String name) { void remove(String name) {