app/irc: clean up timer & notifications on quit
This commit is contained in:
parent
7f76dabfd0
commit
01dc170e5b
2 changed files with 8 additions and 1 deletions
|
@ -35,6 +35,9 @@
|
|||
(if (y-or-n-p "Really kill IRC session?")
|
||||
(let (circe-channel-killed-confirmation
|
||||
circe-server-killed-confirmation)
|
||||
(when +irc--defer-timer
|
||||
(cancel-timer +irc--defer-timer))
|
||||
(disable-circe-notifications)
|
||||
(mapcar #'kill-buffer (doom-buffers-in-mode 'circe-mode (buffer-list) t))
|
||||
(when (equal (+workspace-current-name) +irc--workspace-name)
|
||||
(+workspace/delete +irc--workspace-name)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue