Skip to content

Commit

Permalink
紧急修复:此 bug 导致不带参数时无法启动程序
Browse files Browse the repository at this point in the history
  • Loading branch information
clover-yan authored May 12, 2023
1 parent 3471ae0 commit 1553b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DateCountdown/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1553b26

Please sign in to comment.