Skip to content

Commit 01d166f

Browse files
committed
chore: 进程锁加入版本号
1 parent 7c0b95d commit 01d166f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

MFAAvalonia/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static Dictionary<string, string> ParseArguments(string[] args)
4444
public static Dictionary<string, string> Args { get; private set; } = new();
4545
private static Mutex? _mutex;
4646
private static bool _mutexReleased = false;
47-
private static readonly object _mutexLock = new();
47+
private static readonly object _mutexLock = new();
4848
private static int _mutexOwnerThreadId = -1;
4949
public static bool IsNewInstance = true;
5050

@@ -184,6 +184,8 @@ public static void Main(string[] args)
184184

185185
var parsedArgs = ParseArguments(args);
186186
var mutexName = "MFAAvalonia_"
187+
+ RootViewModel.Version
188+
+ "_"
187189
+ Directory.GetCurrentDirectory().Replace("\\", "_")
188190
.Replace("/", "_")
189191
.Replace(":", string.Empty);

0 commit comments

Comments
 (0)