From 7d4e3d00f8d2ba7417c6fe1cddd800a71d84af10 Mon Sep 17 00:00:00 2001 From: Antoine Aflalo Date: Sat, 17 Apr 2021 11:02:12 -0400 Subject: [PATCH] boost(Profile::Trigger): Add new TrayMenu trigger to available triggers --- SoundSwitch/Framework/Profile/Trigger/TriggerFactory.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SoundSwitch/Framework/Profile/Trigger/TriggerFactory.cs b/SoundSwitch/Framework/Profile/Trigger/TriggerFactory.cs index 8aa74b4400..5fecbb2e6c 100644 --- a/SoundSwitch/Framework/Profile/Trigger/TriggerFactory.cs +++ b/SoundSwitch/Framework/Profile/Trigger/TriggerFactory.cs @@ -24,7 +24,8 @@ public enum Enum new WindowTrigger(), new SteamBigPictureTrigger(), new Startup(), - new UwpApp() + new UwpApp(), + new TrayMenu() }; public TriggerFactory() : base(Impl) @@ -128,8 +129,11 @@ public class UwpApp : BaseTrigger public override string Description => SettingsStrings.profile_trigger_uwp_desc; public override bool AlwaysDefaultAndRestoreDevice => true; } + public class TrayMenu : BaseTrigger { - public override string Description { get; } + public override string Description => SettingsStrings.profile_trigger_trayMenu_desc; + public override TriggerFactory.Enum TypeEnum => TriggerFactory.Enum.TrayMenu; + public override string Label => SettingsStrings.profile_trigger_trayMenu; } } \ No newline at end of file