mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-02-18 00:17:40 +01:00
fix issues in #135
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user