mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-26 05:45:35 +00:00
Don't show the info window if there's nothing to show.
This commit is contained in:
@@ -299,7 +299,8 @@ std::string StorageDevice::parse_basic_data(bool do_set_properties, bool emit_si
|
||||
}
|
||||
}
|
||||
|
||||
set_parse_status(parse_status_info);
|
||||
// A model field (and its aliases) is a good indication whether there was any data or not
|
||||
set_parse_status(model_name_.defined() ? parse_status_info : parse_status_none);
|
||||
|
||||
if (emit_signal)
|
||||
signal_changed.emit(this); // notify listeners
|
||||
|
||||
Reference in New Issue
Block a user