mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
fix build
This commit is contained in:
@@ -40,7 +40,6 @@ namespace winrt::PowerToys::Interop::implementation
|
|||||||
static hstring PowerAccentExitEvent();
|
static hstring PowerAccentExitEvent();
|
||||||
static hstring ShortcutGuideTriggerEvent();
|
static hstring ShortcutGuideTriggerEvent();
|
||||||
static hstring RegistryPreviewTriggerEvent();
|
static hstring RegistryPreviewTriggerEvent();
|
||||||
static hstring MeasureToolTriggerEvent();
|
|
||||||
static hstring GcodePreviewResizeEvent();
|
static hstring GcodePreviewResizeEvent();
|
||||||
static hstring BgcodePreviewResizeEvent();
|
static hstring BgcodePreviewResizeEvent();
|
||||||
static hstring QoiPreviewResizeEvent();
|
static hstring QoiPreviewResizeEvent();
|
||||||
|
|||||||
@@ -15,23 +15,22 @@ namespace PowerToys
|
|||||||
static String ShowColorPickerSharedEvent();
|
static String ShowColorPickerSharedEvent();
|
||||||
static String TerminateColorPickerSharedEvent();
|
static String TerminateColorPickerSharedEvent();
|
||||||
static String AdvancedPasteShowUIMessage();
|
static String AdvancedPasteShowUIMessage();
|
||||||
static String AdvancedPasteMarkdownMessage();
|
static String AdvancedPasteMarkdownMessage();
|
||||||
static String AdvancedPasteJsonMessage();
|
static String AdvancedPasteJsonMessage();
|
||||||
static String AdvancedPasteAdditionalActionMessage();
|
static String AdvancedPasteAdditionalActionMessage();
|
||||||
static String AdvancedPasteCustomActionMessage();
|
static String AdvancedPasteCustomActionMessage();
|
||||||
static String AdvancedPasteTerminateAppMessage();
|
static String AdvancedPasteTerminateAppMessage();
|
||||||
static String AdvancedPasteShowUIEvent();
|
static String AdvancedPasteShowUIEvent();
|
||||||
static String AlwaysOnTopPinEvent();
|
static String AlwaysOnTopPinEvent();
|
||||||
static String MeasureToolTriggerEvent();
|
static String FindMyMouseTriggerEvent();
|
||||||
static String FindMyMouseTriggerEvent();
|
static String MouseHighlighterTriggerEvent();
|
||||||
static String MouseHighlighterTriggerEvent();
|
static String MouseCrosshairsTriggerEvent();
|
||||||
static String MouseCrosshairsTriggerEvent();
|
static String LightSwitchToggleEvent();
|
||||||
static String LightSwitchToggleEvent();
|
static String ShowPowerOCRSharedEvent();
|
||||||
static String ShowPowerOCRSharedEvent();
|
static String TerminatePowerOCRSharedEvent();
|
||||||
static String TerminatePowerOCRSharedEvent();
|
static String MouseJumpShowPreviewEvent();
|
||||||
static String MouseJumpShowPreviewEvent();
|
static String TerminateMouseJumpSharedEvent();
|
||||||
static String TerminateMouseJumpSharedEvent();
|
static String AwakeExitEvent();
|
||||||
static String AwakeExitEvent();
|
|
||||||
static String ShowPeekEvent();
|
static String ShowPeekEvent();
|
||||||
static String TerminatePeekEvent();
|
static String TerminatePeekEvent();
|
||||||
static String PowerAccentExitEvent();
|
static String PowerAccentExitEvent();
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ internal sealed partial class CropAndLockReparentCommand : InvokableCommand
|
|||||||
Name = "Crop and Lock (Reparent)";
|
Name = "Crop and Lock (Reparent)";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CommandResult Invoke()
|
public override CommandResult Invoke()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.CropAndLockReparentEvent());
|
||||||
{
|
evt.Set();
|
||||||
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.CropAndLockReparentEvent());
|
return CommandResult.Dismiss();
|
||||||
evt.Set();
|
}
|
||||||
return CommandResult.Dismiss();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return CommandResult.ShowToast($"Failed to start Crop and Lock (Reparent): {ex.Message}");
|
return CommandResult.ShowToast($"Failed to start Crop and Lock (Reparent): {ex.Message}");
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ internal sealed partial class CropAndLockThumbnailCommand : InvokableCommand
|
|||||||
Name = "Crop and Lock (Thumbnail)";
|
Name = "Crop and Lock (Thumbnail)";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CommandResult Invoke()
|
public override CommandResult Invoke()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.CropAndLockThumbnailEvent());
|
||||||
{
|
evt.Set();
|
||||||
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.CropAndLockThumbnailEvent());
|
return CommandResult.Dismiss();
|
||||||
evt.Set();
|
}
|
||||||
return CommandResult.Dismiss();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return CommandResult.ShowToast($"Failed to start Crop and Lock (Thumbnail): {ex.Message}");
|
return CommandResult.ShowToast($"Failed to start Crop and Lock (Thumbnail): {ex.Message}");
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ internal sealed partial class OpenEnvironmentVariablesAdminCommand : InvokableCo
|
|||||||
Name = "Open Environment Variables (Admin)";
|
Name = "Open Environment Variables (Admin)";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CommandResult Invoke()
|
public override CommandResult Invoke()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.ShowEnvironmentVariablesAdminSharedEvent());
|
||||||
{
|
evt.Set();
|
||||||
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.ShowEnvironmentVariablesAdminSharedEvent());
|
return CommandResult.Dismiss();
|
||||||
evt.Set();
|
}
|
||||||
return CommandResult.Dismiss();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return CommandResult.ShowToast($"Failed to open Environment Variables (Admin): {ex.Message}");
|
return CommandResult.ShowToast($"Failed to open Environment Variables (Admin): {ex.Message}");
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ internal sealed partial class OpenFancyZonesEditorCommand : InvokableCommand
|
|||||||
Name = "Open FancyZones Editor";
|
Name = "Open FancyZones Editor";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CommandResult Invoke()
|
public override CommandResult Invoke()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.FZEToggleEvent());
|
||||||
{
|
evt.Set();
|
||||||
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.FZEToggleEvent());
|
return CommandResult.Dismiss();
|
||||||
evt.Set();
|
}
|
||||||
return CommandResult.Dismiss();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return CommandResult.ShowToast($"Failed to open FancyZones editor: {ex.Message}");
|
return CommandResult.ShowToast($"Failed to open FancyZones editor: {ex.Message}");
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ internal sealed partial class OpenHostsEditorCommand : InvokableCommand
|
|||||||
Name = "Open Hosts File Editor";
|
Name = "Open Hosts File Editor";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CommandResult Invoke()
|
public override CommandResult Invoke()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.ShowHostsSharedEvent());
|
||||||
{
|
evt.Set();
|
||||||
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.ShowHostsSharedEvent());
|
return CommandResult.Dismiss();
|
||||||
evt.Set();
|
}
|
||||||
return CommandResult.Dismiss();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return CommandResult.ShowToast($"Failed to open Hosts File Editor: {ex.Message}");
|
return CommandResult.ShowToast($"Failed to open Hosts File Editor: {ex.Message}");
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ internal sealed partial class ToggleLightSwitchCommand : InvokableCommand
|
|||||||
Name = "Toggle Light Switch";
|
Name = "Toggle Light Switch";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CommandResult Invoke()
|
public override CommandResult Invoke()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.LightSwitchToggleEvent());
|
||||||
{
|
evt.Set();
|
||||||
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.LightSwitchToggleEvent());
|
return CommandResult.Dismiss();
|
||||||
evt.Set();
|
}
|
||||||
return CommandResult.Dismiss();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return CommandResult.ShowToast($"Failed to toggle Light Switch: {ex.Message}");
|
return CommandResult.ShowToast($"Failed to toggle Light Switch: {ex.Message}");
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ internal sealed partial class ToggleFindMyMouseCommand : InvokableCommand
|
|||||||
Name = "Trigger Find My Mouse";
|
Name = "Trigger Find My Mouse";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CommandResult Invoke()
|
public override CommandResult Invoke()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.FindMyMouseTriggerEvent());
|
||||||
{
|
evt.Set();
|
||||||
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.FindMyMouseTriggerEvent());
|
return CommandResult.Dismiss();
|
||||||
evt.Set();
|
}
|
||||||
return CommandResult.Dismiss();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return CommandResult.ShowToast($"Failed to trigger Find My Mouse: {ex.Message}");
|
return CommandResult.ShowToast($"Failed to trigger Find My Mouse: {ex.Message}");
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ internal sealed partial class ToggleMouseCrosshairsCommand : InvokableCommand
|
|||||||
Name = "Toggle Mouse Crosshairs";
|
Name = "Toggle Mouse Crosshairs";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CommandResult Invoke()
|
public override CommandResult Invoke()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.MouseCrosshairsTriggerEvent());
|
||||||
{
|
evt.Set();
|
||||||
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.MouseCrosshairsTriggerEvent());
|
return CommandResult.Dismiss();
|
||||||
evt.Set();
|
}
|
||||||
return CommandResult.Dismiss();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return CommandResult.ShowToast($"Failed to toggle Mouse Crosshairs: {ex.Message}");
|
return CommandResult.ShowToast($"Failed to toggle Mouse Crosshairs: {ex.Message}");
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ internal sealed partial class ToggleMouseHighlighterCommand : InvokableCommand
|
|||||||
Name = "Toggle Mouse Highlighter";
|
Name = "Toggle Mouse Highlighter";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CommandResult Invoke()
|
public override CommandResult Invoke()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.MouseHighlighterTriggerEvent());
|
||||||
{
|
evt.Set();
|
||||||
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.MouseHighlighterTriggerEvent());
|
return CommandResult.Dismiss();
|
||||||
evt.Set();
|
}
|
||||||
return CommandResult.Dismiss();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return CommandResult.ShowToast($"Failed to toggle Mouse Highlighter: {ex.Message}");
|
return CommandResult.ShowToast($"Failed to toggle Mouse Highlighter: {ex.Message}");
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ internal sealed partial class OpenRegistryPreviewCommand : InvokableCommand
|
|||||||
Name = "Open Registry Preview";
|
Name = "Open Registry Preview";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CommandResult Invoke()
|
public override CommandResult Invoke()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.RegistryPreviewTriggerEvent());
|
||||||
{
|
evt.Set();
|
||||||
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.RegistryPreviewTriggerEvent());
|
return CommandResult.Dismiss();
|
||||||
evt.Set();
|
}
|
||||||
return CommandResult.Dismiss();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return CommandResult.ShowToast($"Failed to open Registry Preview: {ex.Message}");
|
return CommandResult.ShowToast($"Failed to open Registry Preview: {ex.Message}");
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ internal sealed partial class ToggleShortcutGuideCommand : InvokableCommand
|
|||||||
Name = "Toggle Shortcut Guide";
|
Name = "Toggle Shortcut Guide";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CommandResult Invoke()
|
public override CommandResult Invoke()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.ShortcutGuideTriggerEvent());
|
||||||
{
|
evt.Set();
|
||||||
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.ShortcutGuideTriggerEvent());
|
return CommandResult.Dismiss();
|
||||||
evt.Set();
|
}
|
||||||
return CommandResult.Dismiss();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return CommandResult.ShowToast($"Failed to toggle Shortcut Guide: {ex.Message}");
|
return CommandResult.ShowToast($"Failed to toggle Shortcut Guide: {ex.Message}");
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ internal sealed partial class ToggleTextExtractorCommand : InvokableCommand
|
|||||||
Name = "Toggle Text Extractor";
|
Name = "Toggle Text Extractor";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override CommandResult Invoke()
|
public override CommandResult Invoke()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.ShowPowerOCRSharedEvent());
|
||||||
{
|
evt.Set();
|
||||||
using var evt = new EventWaitHandle(false, EventResetMode.AutoReset, Constants.ShowPowerOCRSharedEvent());
|
return CommandResult.Dismiss();
|
||||||
evt.Set();
|
}
|
||||||
return CommandResult.Dismiss();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return CommandResult.ShowToast($"Failed to toggle Text Extractor: {ex.Message}");
|
return CommandResult.ShowToast($"Failed to toggle Text Extractor: {ex.Message}");
|
||||||
|
|||||||
Reference in New Issue
Block a user