Skip to content

Commit 85643a8

Browse files
committed
Issues #21 One instance application
1 parent 5fb4c9a commit 85643a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SmartContextMenu/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ namespace SmartContextMenu
1717
{
1818
static class Program
1919
{
20+
private static Mutex _mutex;
21+
2022
/// <summary>
2123
/// The main entry point for the application.
2224
/// </summary>
@@ -55,7 +57,7 @@ static void Main(string[] args)
5557
}
5658

5759

58-
var mutex = new Mutex(false, AssemblyUtils.AssemblyTitle, out var createNew);
60+
_mutex = new Mutex(false, AssemblyUtils.AssemblyTitle, out var createNew);
5961
if (!createNew)
6062
{
6163
return;

0 commit comments

Comments
 (0)