mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
[PTRun]Add hotkey to the show telemetry event (#36869)
This commit is contained in:
@@ -12,6 +12,13 @@ namespace Microsoft.PowerLauncher.Telemetry
|
||||
[EventData]
|
||||
public class LauncherShowEvent : EventBase, IEvent
|
||||
{
|
||||
public LauncherShowEvent(string hotkey)
|
||||
{
|
||||
Hotkey = hotkey;
|
||||
}
|
||||
|
||||
public string Hotkey { get; private set; }
|
||||
|
||||
public PartA_PrivTags PartA_PrivTags => PartA_PrivTags.ProductAndServiceUsage;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -466,7 +466,7 @@ namespace PowerLauncher.ViewModel
|
||||
// Don't trigger telemetry on cold boot. Must have been loaded at least once.
|
||||
if (value == Visibility.Visible)
|
||||
{
|
||||
PowerToysTelemetry.Log.WriteEvent(new LauncherShowEvent());
|
||||
PowerToysTelemetry.Log.WriteEvent(new LauncherShowEvent(_settings.Hotkey));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user