timers work, fix crash when vscode window closes after timeout

This commit is contained in:
2026-02-07 22:54:31 +01:00
parent 6be70a7d93
commit a90d1c2f6c
7 changed files with 72 additions and 11 deletions

View File

@@ -2,6 +2,7 @@
#include <chrono>
#include <cstdint>
#include <memory>
#include <sigc++/connection.h>
#include "gdkmm/monitor.h"
@@ -9,7 +10,7 @@
#define DEFAULT_NOTIFICATION_TIMEOUT 6700
class BaseNotification : public Gtk::Window {
class BaseNotification : public Gtk::Window, public std::enable_shared_from_this<BaseNotification> {
public:
BaseNotification(uint64_t notificationId, std::shared_ptr<Gdk::Monitor> monitor);