fix issues in #135

This commit is contained in:
Jonas Bark
2025-10-26 21:23:57 +01:00
parent 916b1ec1fc
commit d5260d801c
2 changed files with 7 additions and 2 deletions

View File

@@ -327,7 +327,9 @@ class _DevicePageState extends State<DevicePage> with WidgetsBindingObserver {
children: [
IconButton(
onPressed: () async {
final currentProfile = actionHandler.supportedApp?.name;
final currentProfile = actionHandler.supportedApp is CustomApp
? actionHandler.supportedApp?.name
: null;
final action = await KeymapManager().showManageProfileDialog(
context,
currentProfile,

View File

@@ -44,7 +44,10 @@ class BluetoothTurnedOn extends PlatformRequirement {
} else if (currentState == AvailabilityState.poweredOff) {
await UniversalBle.enableBluetooth();
} else {
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text('Unable to enable Bluetooth: $currentState')));
// I guess bluetooth is on now
// TODO move UniversalBle.onAvailabilityChange
getStatus();
onUpdate();
}
}