From 6c6570a326e12edb04498b3272b916eb8d431319 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 17 Mar 2017 22:32:27 +0000 Subject: [PATCH] WinGui: Fix a crash in the Notify Icon Service when Notify Icon is not enabled. --- win/CS/HandBrakeWPF/Services/NotifyIconService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/win/CS/HandBrakeWPF/Services/NotifyIconService.cs b/win/CS/HandBrakeWPF/Services/NotifyIconService.cs index 2319f93bc..df28b6314 100644 --- a/win/CS/HandBrakeWPF/Services/NotifyIconService.cs +++ b/win/CS/HandBrakeWPF/Services/NotifyIconService.cs @@ -19,7 +19,10 @@ namespace HandBrakeWPF.Services public void SetTooltip(string text) { - this.notifyIcon.Text = text; + if (this.notifyIcon != null) + { + this.notifyIcon.Text = text; + } } } } -- 2.40.0