Upower. Fix segmentation fault

Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
This commit is contained in:
Viktar Lukashonak
2024-05-10 00:00:47 +03:00
parent 2ead1bbf84
commit 5fe99ea0e1
2 changed files with 13 additions and 7 deletions

View File

@ -49,6 +49,7 @@ class UPower final : public AIconLabel {
Glib::ustring label_markup_;
std::mutex mutex_;
Glib::RefPtr<Gtk::IconTheme> gtkTheme_;
bool sleeping_;
// Technical functions
void addDevice(UpDevice *);