mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
24 lines
463 B
C#
24 lines
463 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Wox.CommandArgs
|
|
{
|
|
public class ToggleCommandArg:ICommandArg
|
|
{
|
|
public string Command
|
|
{
|
|
get { return "toggle"; }
|
|
}
|
|
|
|
public void Execute(IList<string> args)
|
|
{
|
|
if (App.Window.IsVisible)
|
|
{
|
|
App.API.HideApp();
|
|
}
|
|
else
|
|
{
|
|
App.API.ShowApp();
|
|
}
|
|
}
|
|
}
|
|
}
|