[Bugfix] Fix org-clock-waybar--get-tooltip

The functions it calls don’texist.
This commit is contained in:
Gergely Polonkai 2021-03-11 17:48:20 +01:00
parent eb03af79d9
commit c6caa3276f
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4
1 changed files with 4 additions and 4 deletions

View File

@ -72,13 +72,13 @@
"Get the category of TASK." "Get the category of TASK."
(when task (get-text-property 0 'org-category task))) (when task (get-text-property 0 'org-category task)))
(defun org-clock-waybar-tooltip () (defun org-clock-waybar--get-tooltip ()
"The default tooltip to send to waybar." "The default tooltip to send to waybar."
(when org-clock-current-task (when org-clock-current-task
(let ((clocked-time (org-clock-get-clocked-time))) (let ((clocked-time (org-clock-get-clocked-time)))
(format "%s: %s (%s)" (format "%s: %s (%s)"
(org-clock-waybar-alt) (org-clock-waybar--get-task-category)
(org-clock-waybar-text) (org-clock-waybar--get-task-title)
(org-duration-from-minutes clocked-time))))) (org-duration-from-minutes clocked-time)))))
(defun org-clock-waybar--get-clocked-task-json (&optional clocking-out) (defun org-clock-waybar--get-clocked-task-json (&optional clocking-out)
@ -94,7 +94,7 @@ before setting `org-clock-current-task' to nil."
(let* ((task (if clocking-out nil org-clock-current-task)) (let* ((task (if clocking-out nil org-clock-current-task))
(category (org-clock-waybar--get-task-title task)) (category (org-clock-waybar--get-task-title task))
(title (org-clock-waybar--get-task-category task)) (title (org-clock-waybar--get-task-category task))
(tooltip (org-clock-waybar-tooltip)) (tooltip (org-clock-waybar--get-tooltip))
(output (json-new-object))) (output (json-new-object)))
(setq output (json-add-to-object (setq output (json-add-to-object
output output