mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
remove debug launching
Signed-off-by: Shawn Yuan (from Dev Box) <shuaiyuan@microsoft.com>
This commit is contained in:
@@ -112,11 +112,7 @@ namespace AdvancedPaste
|
|||||||
/// Invoked when the application is launched.
|
/// Invoked when the application is launched.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="args">Details about the launch request and process.</param>
|
/// <param name="args">Details about the launch request and process.</param>
|
||||||
#if DEBUG
|
|
||||||
protected async override void OnLaunched(LaunchActivatedEventArgs args)
|
|
||||||
#else
|
|
||||||
protected override void OnLaunched(LaunchActivatedEventArgs args)
|
protected override void OnLaunched(LaunchActivatedEventArgs args)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
var cmdArgs = Environment.GetCommandLineArgs();
|
var cmdArgs = Environment.GetCommandLineArgs();
|
||||||
if (cmdArgs?.Length > 1)
|
if (cmdArgs?.Length > 1)
|
||||||
@@ -138,10 +134,6 @@ namespace AdvancedPaste
|
|||||||
{
|
{
|
||||||
ProcessNamedPipe(cmdArgs[2]);
|
ProcessNamedPipe(cmdArgs[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
await ShowWindow(); // This allows for direct access without using PowerToys Runner, not all functionality might work
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ProcessNamedPipe(string pipeName)
|
private void ProcessNamedPipe(string pipeName)
|
||||||
|
|||||||
Reference in New Issue
Block a user