From 1553b268c49f7a7c96d8d54f3fad10f87728385a Mon Sep 17 00:00:00 2001 From: clover_yan <56215525+clover-yan@users.noreply.github.com> Date: Fri, 12 May 2023 13:54:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=A7=E6=80=A5=E4=BF=AE=E5=A4=8D=EF=BC=9A?= =?UTF-8?q?=E6=AD=A4=20bug=20=E5=AF=BC=E8=87=B4=E4=B8=8D=E5=B8=A6=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=97=B6=E6=97=A0=E6=B3=95=E5=90=AF=E5=8A=A8=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DateCountdown/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DateCountdown/MainWindow.xaml.cs b/DateCountdown/MainWindow.xaml.cs index c618e07..ab40212 100644 --- a/DateCountdown/MainWindow.xaml.cs +++ b/DateCountdown/MainWindow.xaml.cs @@ -53,7 +53,7 @@ protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); - if (App.StartArgs.Contains("-k")) + if (App.StartArgs != null && App.StartArgs.Contains("-k")) { // Get this window's handle