Merge branch 'ios' into copilot/fix-2d2954be-782f-43b7-b654-d4aa8263083d

This commit is contained in:
Jonas Bark
2025-10-09 22:41:33 +02:00
2 changed files with 5 additions and 1 deletions

View File

@@ -186,6 +186,10 @@ class Connection {
devices.clear();
}
void signalNotification(BaseNotification notification) {
_actionStreams.add(notification);
}
void signalChange(BaseDevice baseDevice) {
_connectionStreams.add(baseDevice);
}

View File

@@ -72,7 +72,7 @@ class MenuButton extends StatelessWidget {
child: Text(e.name),
onTap: () {
Future.delayed(Duration(seconds: 2)).then((_) {
connection.devices.firstOrNull?.actionStreamInternal.add(
connection.signalNotification(
RideNotification(Uint8List(0), analogPaddleThreshold: 25)..buttonsClicked = [e],
);
});