1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2025-02-19 08:30:35 +01:00

- lowered permancence of notification when updating timelines;

- fixed managing of editor arguments.
This commit is contained in:
cage 2020-09-18 21:43:13 +02:00
parent 07611936c0
commit 13cb2e810e
2 changed files with 13 additions and 10 deletions

View File

@ -67,14 +67,17 @@
(defun open-with-editor (file) (defun open-with-editor (file)
(multiple-value-bind (exe args) (multiple-value-bind (exe args)
(external-editor) (external-editor)
(sb-ext:run-program exe (let ((actual-args (if args
(append (list args) (list args)
(list file)) nil)))
:search t (sb-ext:run-program exe
:wait t (append actual-args
:input t (list file))
:output t :search t
:error t))) :wait t
:input t
:output t
:error t))))
(defun exit-program (&optional (exit-code 0)) (defun exit-program (&optional (exit-code 0))
(uiop:quit exit-code)) (uiop:quit exit-code))

View File

@ -585,11 +585,11 @@ and if fetch local (again, to server) statuses only."
(let ((event (make-instance 'function-event :payload event-payload-function))) (let ((event (make-instance 'function-event :payload event-payload-function)))
(notify (_ "Downloading messages.") (notify (_ "Downloading messages.")
:priority +maximum-event-priority+ :priority +maximum-event-priority+
:life (* (swconf:config-notification-life) 5)) :life (swconf:config-notification-life))
(push-event event) (push-event event)
(notify (_ "Messages downloaded.") (notify (_ "Messages downloaded.")
:priority +minimum-event-priority+ :priority +minimum-event-priority+
:life (* (swconf:config-notification-life) 5)))) :life (swconf:config-notification-life))))
(defun update-current-timeline (&optional (recover-count 0)) (defun update-current-timeline (&optional (recover-count 0))
"Update current timeline "Update current timeline