瀏覽代碼

fix: incorrect code

林轻语 6 月之前
父節點
當前提交
c2580809e0
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      Plain Craft Launcher 2/Application.xaml.vb

+ 1 - 1
Plain Craft Launcher 2/Application.xaml.vb

@@ -204,7 +204,7 @@ RetryCacheCheck:
         Dim Pid As Integer
         If Not Integer.TryParse(File.ReadAllText(LockPath), Pid) Then Return
         Dim Handle = Process.GetProcessById(Pid)?.MainWindowHandle
-        If Handle <> Intptr.Zero ShowWindowToTop(Handle)
+        If Handle <> Intptr.Zero Then ShowWindowToTop(Handle)
     End Sub
 
     '结束