fix timer

This commit is contained in:
2026-02-10 13:30:25 +01:00
parent d1b81c4d3e
commit 55a76be186
10 changed files with 38 additions and 28 deletions

View File

@@ -122,4 +122,7 @@ class BluetoothController : public DbusConnection {
// HID Authorization handler
void authorizeHIDDevice(const std::string &object_path);
Glib::RefPtr<Gio::DBus::NodeInfo> m_node_info;
std::shared_ptr<Gio::DBus::InterfaceVTable> m_interface_vtable;
};

View File

@@ -37,11 +37,11 @@ struct NotifyMessage {
std::string body;
std::vector<std::string> actions;
NotificationUrgency urgency = NORMAL;
int32_t expire_timeout;
int32_t expire_timeout = -1;
// Callback to invoke when an action is triggered
std::function<void(const std::string &action_id)> on_action;
// Guard to prevent multiple action invocations across mirrors
std::shared_ptr<bool> actionInvoked;
std::shared_ptr<bool> actionInvoked = std::make_shared<bool>(false);
// image data (if any) from dbus
std::optional<Glib::RefPtr<Gdk::Pixbuf>> imageData;