mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-05-16 10:22:34 +12:00
[Feature] Executable to show the menu (#276), version 1.2.0.12
This commit is contained in:
parent
2659d19283
commit
4c600a8c66
|
@ -18,15 +18,12 @@ namespace SystemTrayMenu
|
|||
{
|
||||
try
|
||||
{
|
||||
bool killOtherInstances = false;
|
||||
if (args != null && args.Length > 0)
|
||||
bool killOtherInstances = true;
|
||||
if (args != null && args.Length > 0 &&
|
||||
(args[0] == "-h" || args[0] == "-hotkey"))
|
||||
{
|
||||
if (args[0] == "-r")
|
||||
{
|
||||
args = null;
|
||||
}
|
||||
|
||||
killOtherInstances = true;
|
||||
args = null;
|
||||
killOtherInstances = false;
|
||||
}
|
||||
|
||||
Log.Initialize();
|
||||
|
|
|
@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0.11")]
|
||||
[assembly: AssemblyFileVersion("1.2.0.11")]
|
||||
[assembly: AssemblyVersion("1.2.0.12")]
|
||||
[assembly: AssemblyFileVersion("1.2.0.12")]
|
||||
|
|
|
@ -323,7 +323,7 @@
|
|||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>taskkill /fi "pid gt 0" /im SystemTrayMenu.exe
|
||||
REM taskkill /f /fi "pid gt 0" /im SystemTrayMenu.exe
|
||||
taskkill /f /fi "pid gt 0" /im SystemTrayMenu.exe
|
||||
EXIT 0</PreBuildEvent>
|
||||
<RepositoryUrl>https://github.com/Hofknecht/SystemTrayMenu</RepositoryUrl>
|
||||
<PackageIcon>icon.png</PackageIcon>
|
||||
|
|
|
@ -47,9 +47,9 @@ namespace SystemTrayMenu.Utilities
|
|||
|
||||
using (Process p = new())
|
||||
{
|
||||
p.StartInfo = new ProcessStartInfo(
|
||||
Process.GetCurrentProcess().MainModule.FileName,
|
||||
"-r");
|
||||
string fileName = Process.GetCurrentProcess().MainModule.FileName;
|
||||
p.StartInfo = new ProcessStartInfo(fileName);
|
||||
|
||||
try
|
||||
{
|
||||
p.Start();
|
||||
|
|
Loading…
Reference in a new issue