From 9945cc139b5165f3d042fb0dc9f9ec63dbb8b3b5 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Thu, 14 Dec 2023 16:09:46 +0100 Subject: [PATCH] Reset tooltip if evaluation message is empty --- src/BreCalClient/ShipcallControl.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BreCalClient/ShipcallControl.xaml.cs b/src/BreCalClient/ShipcallControl.xaml.cs index 50fee9e..adbc12a 100644 --- a/src/BreCalClient/ShipcallControl.xaml.cs +++ b/src/BreCalClient/ShipcallControl.xaml.cs @@ -223,6 +223,8 @@ namespace BreCalClient if (!string.IsNullOrEmpty(this.ShipcallControlModel?.Shipcall?.EvaluationMessage)) this.imageEvaluation.ToolTip = this.ShipcallControlModel?.Shipcall?.EvaluationMessage; + else + this.imageEvaluation.ToolTip = null; this.textBlockBerth.Text = this.ShipcallControlModel?.Berth; this.textBlockCallsign.Text = this.ShipcallControlModel?.Ship?.Callsign;