timers work, fix crash when vscode window closes after timeout
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user