Skip to content

Commit

Permalink
新增对未安装 BNS 情况的错误处理
Browse files Browse the repository at this point in the history
  • Loading branch information
STBBRD committed Mar 31, 2024
1 parent fb7eed9 commit bda122b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ZongziTEK_Blackboard_Sticker/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2042,6 +2042,7 @@ private void ShowNotificationBNS(string title, string subtitle, double time, boo
startInfo.FileName = Settings.TimetableSettings.BNSPath + "\\bns.exe";
}*/
if (GetBNSPath() != null) startInfo.FileName = GetBNSPath();
else return;

startInfo.Arguments = "\"" + title + "\"" + " \"" + subtitle + "\" -t " + timeString;
if (isBottom) startInfo.Arguments += " -bottom";
Expand Down

0 comments on commit bda122b

Please sign in to comment.