mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Removing unecceary EventName requirement. EventSource<T>.Write will use the type name of T if null is passed in. This saves us passing an extra string uneccesarily as the public property would be serialized into the event data as well as being specified as the EventName
This commit is contained in:
@@ -11,7 +11,7 @@ namespace PowerLauncher.UI
|
||||
{
|
||||
public sealed partial class ResultList : UserControl
|
||||
{
|
||||
private ResultActionEvent.TriggerType triggerType = ResultActionEvent.TriggerType.Click;
|
||||
private LauncherResultActionEvent.TriggerType triggerType = LauncherResultActionEvent.TriggerType.Click;
|
||||
public ResultList()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -20,7 +20,7 @@ namespace PowerLauncher.UI
|
||||
|
||||
private void ContextButton_OnAcceleratorInvoked(Windows.UI.Xaml.Input.KeyboardAccelerator sender, Windows.UI.Xaml.Input.KeyboardAcceleratorInvokedEventArgs args)
|
||||
{
|
||||
this.triggerType = ResultActionEvent.TriggerType.KeyboardShortcut;
|
||||
this.triggerType = LauncherResultActionEvent.TriggerType.KeyboardShortcut;
|
||||
}
|
||||
|
||||
private void ContextButton_OnClick(object sender, Windows.UI.Xaml.RoutedEventArgs e)
|
||||
@@ -39,7 +39,7 @@ namespace PowerLauncher.UI
|
||||
}
|
||||
|
||||
//Restore the trigger type back to click
|
||||
triggerType = ResultActionEvent.TriggerType.Click;
|
||||
triggerType = LauncherResultActionEvent.TriggerType.Click;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user