Răsfoiți Sursa

fix: incorrect code

林轻语 5 luni în urmă
părinte
comite
c2580809e0
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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
 
     '结束