Skip to content

Commit

Permalink
close manage devices on button press
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Feb 25, 2024
1 parent 358f6c0 commit 732923d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Frontend/pages/Shell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ class _ManageGearState extends ConsumerState<ManageGear> {
setState(() {
widget.device.connectionStateStreamSubscription?.cancel();
});
Navigator.pop(context);
},
child: Text(manageDevicesDisconnect()),
)
Expand All @@ -482,6 +483,7 @@ class _ManageGearState extends ConsumerState<ManageGear> {
setState(() {
widget.device.commandQueue.addCommand(BluetoothMessage("SHUTDOWN", widget.device, Priority.high));
});
Navigator.pop(context);
},
child: Text(manageDevicesShutdown()),
)
Expand All @@ -492,6 +494,7 @@ class _ManageGearState extends ConsumerState<ManageGear> {
widget.device.connectionStateStreamSubscription = null;
});
widget.ref.watch(knownDevicesProvider.notifier).remove(widget.device.baseStoredDevice.btMACAddress);
Navigator.pop(context);
},
child: Text(manageDevicesForget()),
)
Expand Down

0 comments on commit 732923d

Please sign in to comment.