Fix HTML entity encoding in main window labels

- Fix model family label to use set_markup() instead of set_text()
- Fix family label tooltip to use markup mode
- Fix name label tooltip to use markup mode
- All labels now properly render HTML entities like quotes

Agent-Logs-Url: https://github.com/ashaduri/gsmartcontrol/sessions/d14daedd-b7c3-45ae-adf0-b9de6c8ea901

Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
This commit is contained in:
anthropic-code-agent[bot]
2026-04-04 15:33:54 +00:00
committed by GitHub
co-authored by ashaduri
parent 7ded00815e
commit d768d8b690
+3 -3
View File
@@ -765,7 +765,7 @@ void GscMainWindow::update_status_widgets()
+ (model.empty() ? "" : (", " + model));
if (name_label_) {
name_label_->set_markup(info_str);
app_gtkmm_set_widget_tooltip(*name_label_, info_str, false); // in case it doesn't fit
app_gtkmm_set_widget_tooltip(*name_label_, info_str, true); // in case it doesn't fit
}
const StorageProperty health_prop = drive->get_health_property();
@@ -793,8 +793,8 @@ void GscMainWindow::update_status_widgets()
}
if (family_label_) {
family_label_->set_text(family);
app_gtkmm_set_widget_tooltip(*family_label_, family, false); // in case it doesn't fit
family_label_->set_markup(family);
app_gtkmm_set_widget_tooltip(*family_label_, family, true); // in case it doesn't fit
}
// std::string status_str = " " + device + (size.empty() ? "" : (", " + size)) + (family_fallback.empty() ? "" : (", " + family_fallback));