[Feature] Option #276 as default / arg -r to restart (#305), version 1.2.2.11

This commit is contained in:
Markus Hofknecht 2022-01-30 15:05:48 +01:00
parent c219720685
commit 9725c092e9
3 changed files with 5 additions and 5 deletions

View file

@ -19,8 +19,8 @@ namespace SystemTrayMenu
try
{
bool killOtherInstances = true;
if (args != null && args.Length > 0 &&
(args[0] == "-h" || args[0] == "-hotkey"))
bool isArgumentSetToRestart = args != null && args.Length > 0 && args[0] == "-r";
if (!isArgumentSetToRestart)
{
args = null;
killOtherInstances = false;

View file

@ -62,7 +62,7 @@ namespace SystemTrayMenu
public static void SetFolderByWindowsContextMenu(string[] args)
{
if (args != null && args.Length > 0)
if (args != null && args.Length > 0 && args[0] != "-r")
{
string path = args[0];
Log.Info($"SetFolderByWindowsContextMenu() path: {path}");

View file

@ -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.2.10")]
[assembly: AssemblyFileVersion("1.2.2.10")]
[assembly: AssemblyVersion("1.2.2.11")]
[assembly: AssemblyFileVersion("1.2.2.11")]