From e24311c7cfeb3f39b7fa546176b85fafae1e005e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=BD=BB=E8=AF=AD?= Date: Sun, 17 May 2026 04:30:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=AA=E8=B0=83=E7=94=A8=20Exit=20?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=A8=8B=E5=BA=8F=E7=BB=A7=E7=BB=AD=E6=89=A7?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plain Craft Launcher 2/Application.xaml.vb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Plain Craft Launcher 2/Application.xaml.vb b/Plain Craft Launcher 2/Application.xaml.vb index fff4c5f..a529f2e 100644 --- a/Plain Craft Launcher 2/Application.xaml.vb +++ b/Plain Craft Launcher 2/Application.xaml.vb @@ -115,7 +115,12 @@ RetryCacheCheck: End If Thread.Sleep(500) Next - If Not IsLocked Then DropToTopByLock(FileLockPath) + If Not IsLocked Then + DropToTopByLock(FileLockPath) + DropToTopByLock(FileLockPath) + Beep() + Environment.Exit(ProcessReturnValues.Cancel) + End If End If End If '设置 ToolTipService 默认值 @@ -200,6 +205,7 @@ RetryCacheCheck: Dim Pid As Integer If Not Integer.TryParse(Encoding.UTF8.GetString(Content), Pid) Then Return ShowWindowToTop(Process.GetProcessById(Pid).MainWindowHandle) + End Sub '结束