branch: elpa/minibar
commit 8775f1584c36af1d43a60f61d501a82c7cceca50
Author: Akib Azmain Turja <a...@disroot.org>
Commit: Akib Azmain Turja <a...@disroot.org>

    Use idle timer
---
 minibar.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/minibar.el b/minibar.el
index 3e605c0394..50d9f90fc1 100644
--- a/minibar.el
+++ b/minibar.el
@@ -136,12 +136,11 @@ string to display, or nil in case there is to show."
   :global t
   (if minibar-mode
       (progn
-        (minibar-update)
         (when minibar--update-timer
           (cancel-timer minibar--update-timer))
         (setq minibar--update-timer
-              (run-with-timer t minibar-update-interval
-                              #'minibar-update)))
+              (run-with-idle-timer t minibar-update-interval
+                                   #'minibar-update)))
     (when minibar--update-timer
       (cancel-timer minibar--update-timer)
       (setq minibar--update-timer nil))

Reply via email to