Skip to content

Commit

Permalink
Actions: Add all apps trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar committed Feb 17, 2024
1 parent 99be485 commit 950ec70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private void OnAppAddOrRemove(IAudioDeviceSession app, AudioAppEventKind option)
if ((trigger.Device?.Id == null && device == _playbackManager.DeviceManager.Default) ||
trigger.Device?.Id == device.Id)
{
if (trigger.App.Id == app.AppId)
if (trigger.App.Id == AppRef.EveryAppId || trigger.App.Id == app.AppId)
{
Triggered?.Invoke(trigger);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public AppEventTriggerViewModel(AppEventTrigger trigger) : base(trigger)
{
Option = new OptionViewModel(trigger, nameof(trigger.Option));
Device = new DeviceListViewModel(trigger, DeviceListViewModel.DeviceListKind.DefaultPlayback);
App = new AppListViewModel(trigger, AppListViewModel.AppKind.Default);
App = new AppListViewModel(trigger, AppListViewModel.AppKind.Default | AppListViewModel.AppKind.EveryApp);

Attach(Option);
Attach(Device);
Expand Down

0 comments on commit 950ec70

Please sign in to comment.