Skip to content

Commit

Permalink
🎨 StreamDeck Playground: Auto select a device upon discovery.
Browse files Browse the repository at this point in the history
  • Loading branch information
hexawyz committed Feb 9, 2025
1 parent 7d4b73a commit 85a6e53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Tools/StreamDeckPlayground/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ var notification in DeviceQuery.WatchAllAsync
case WatchNotificationKind.Enumeration:
case WatchNotificationKind.Add:
_devices.Add(await StreamDeckViewModel.CreateAsync(notification.Object.Id, 0x006C, cancellationToken));
if (_selectedDevice is null) SelectedDevice = _devices[0];
break;
case WatchNotificationKind.Update:
break;
Expand Down

0 comments on commit 85a6e53

Please sign in to comment.