Commit 902b1ef
committed
Prevent GLib warnings when removing tray icon sources
Adds a check to ensure a GSource exists before calling g_source_remove in TrayIcon::Impl destructor. This avoids potential GLib warnings when cleaning up pending sources.1 parent 99c6247 commit 902b1ef
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
0 commit comments