diff --git a/lib/Frontend/pages/Shell.dart b/lib/Frontend/pages/Shell.dart index 4d637ae7..a3fa5f81 100644 --- a/lib/Frontend/pages/Shell.dart +++ b/lib/Frontend/pages/Shell.dart @@ -472,6 +472,7 @@ class _ManageGearState extends ConsumerState { setState(() { widget.device.connectionStateStreamSubscription?.cancel(); }); + Navigator.pop(context); }, child: Text(manageDevicesDisconnect()), ) @@ -482,6 +483,7 @@ class _ManageGearState extends ConsumerState { setState(() { widget.device.commandQueue.addCommand(BluetoothMessage("SHUTDOWN", widget.device, Priority.high)); }); + Navigator.pop(context); }, child: Text(manageDevicesShutdown()), ) @@ -492,6 +494,7 @@ class _ManageGearState extends ConsumerState { widget.device.connectionStateStreamSubscription = null; }); widget.ref.watch(knownDevicesProvider.notifier).remove(widget.device.baseStoredDevice.btMACAddress); + Navigator.pop(context); }, child: Text(manageDevicesForget()), )