From 41e9e9cc04a31ba88c3ec65645d9596f4264d16b Mon Sep 17 00:00:00 2001 From: CJKmkp <2564608840@qq.com> Date: Sun, 15 Feb 2026 02:33:42 +0800 Subject: [PATCH] fix:issue #348 --- Ink Canvas/App.xaml.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Ink Canvas/App.xaml.cs b/Ink Canvas/App.xaml.cs index f19bd5e6..cdd03821 100644 --- a/Ink Canvas/App.xaml.cs +++ b/Ink Canvas/App.xaml.cs @@ -1284,8 +1284,11 @@ namespace Ink_Canvas StartupCount.Reset(); Environment.Exit(1); } - string exePath = Process.GetCurrentProcess().MainModule.FileName; - Process.Start(exePath); + else + { + string exePath = Process.GetCurrentProcess().MainModule.FileName; + Process.Start(exePath); + } } } catch { }