Skip to content

Commit

Permalink
boost(Profile::Trigger): Add new TrayMenu trigger to available triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Apr 17, 2021
1 parent 4ecd0fa commit 7d4e3d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SoundSwitch/Framework/Profile/Trigger/TriggerFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public enum Enum
new WindowTrigger(),
new SteamBigPictureTrigger(),
new Startup(),
new UwpApp()
new UwpApp(),
new TrayMenu()
};

public TriggerFactory() : base(Impl)
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 7d4e3d0

Please sign in to comment.