mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Update App.xaml.cs
This commit is contained in:
@@ -10,7 +10,6 @@ using System.Linq;
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using AdvancedPaste.Helpers;
|
using AdvancedPaste.Helpers;
|
||||||
using AdvancedPaste.Models;
|
using AdvancedPaste.Models;
|
||||||
using AdvancedPaste.Services;
|
using AdvancedPaste.Services;
|
||||||
@@ -113,7 +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>
|
||||||
protected async override void OnLaunched(LaunchActivatedEventArgs args)
|
protected override void OnLaunched(LaunchActivatedEventArgs args)
|
||||||
{
|
{
|
||||||
var cmdArgs = Environment.GetCommandLineArgs();
|
var cmdArgs = Environment.GetCommandLineArgs();
|
||||||
if (cmdArgs?.Length > 1)
|
if (cmdArgs?.Length > 1)
|
||||||
@@ -135,8 +134,6 @@ namespace AdvancedPaste
|
|||||||
{
|
{
|
||||||
ProcessNamedPipe(cmdArgs[2]);
|
ProcessNamedPipe(cmdArgs[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
await ShowWindow();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ProcessNamedPipe(string pipeName)
|
private void ProcessNamedPipe(string pipeName)
|
||||||
|
|||||||
Reference in New Issue
Block a user