Update src/gui/gsc_info_window.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Alexander Shaduri
2026-03-07 16:15:24 +01:00
committed by GitHub
co-authored by Copilot
parent 258d06b755
commit 7e626460c0
+3 -2
View File
@@ -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 = "<span color=\"" + alert_color + "\">"s + result_main_msg + "</span>";
if (app_property_get_label_highlight_color(WarningLevel::Alert, alert_color) && !alert_color.empty()) {
result_main_msg = "<span color=\"" + alert_color + "\">"s + result_main_msg + "</span>";
}
}
result_details_msg += "\n"s + _("Check the Self-Test Log for more information.");
break;