From 7e626460c041849c6aa81fffbf49dd4957672bf3 Mon Sep 17 00:00:00 2001 From: Alexander Shaduri Date: Sat, 7 Mar 2026 16:15:24 +0100 Subject: [PATCH] Update src/gui/gsc_info_window.cpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/gui/gsc_info_window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/gsc_info_window.cpp b/src/gui/gsc_info_window.cpp index d3d217b..8530a04 100644 --- a/src/gui/gsc_info_window.cpp +++ b/src/gui/gsc_info_window.cpp @@ -2446,8 +2446,9 @@ gboolean GscInfoWindow::test_idle_callback(void* data) if (!result_main_msg.empty()) { // Highlight in red std::string alert_color; // Use the same color as Alert level warnings for consistency - app_property_get_label_highlight_color(WarningLevel::Alert, alert_color); - result_main_msg = ""s + result_main_msg + ""; + if (app_property_get_label_highlight_color(WarningLevel::Alert, alert_color) && !alert_color.empty()) { + result_main_msg = ""s + result_main_msg + ""; + } } result_details_msg += "\n"s + _("Check the Self-Test Log for more information."); break;