modules: systemd_failed_units: Introduce RequestFailedUnits member

Split-out request of failed units from systemd into a separate member
function.

This increases the readability and extendability, but preserves the
current functionality (non-functional change).

Signed-off-by: Steffen Kothe <steffen.kothe@skothe.net>
This commit is contained in:
Steffen Kothe
2025-06-21 15:34:44 +00:00
parent 4bb06b86bc
commit 0731117679
2 changed files with 7 additions and 3 deletions

View File

@ -25,6 +25,7 @@ class SystemdFailedUnits : public ALabel {
void notify_cb(const Glib::ustring &sender_name, const Glib::ustring &signal_name,
const Glib::VariantContainerBase &arguments);
void RequestFailedUnits();
void updateData();
};