Fix "Show SMART capable only" checkbox not having effect.

This commit is contained in:
Alexander Shaduri
2024-11-07 14:48:18 +04:00
parent 8fd2986a92
commit 566b11026e
+1 -1
View File
@@ -370,7 +370,7 @@ void GscPreferencesWindow::import_config()
if (auto* check = this->lookup_widget<Gtk::CheckButton*>("scan_on_startup_check"))
check->set_active(scan_on_startup);
bool show_smart_capable_only = rconfig::get_data<bool>("gui/scan_on_startup");
bool show_smart_capable_only = rconfig::get_data<bool>("gui/show_smart_capable_only");
if (auto* check = this->lookup_widget<Gtk::CheckButton*>("show_smart_capable_only_check"))
check->set_active(show_smart_capable_only);