Always invalidate cache on update commands

The cache must be invalidated even when there is no PipeWire buffer.
This commit is contained in:
Milan Zamazal 2022-06-08 19:17:32 +02:00
parent 146c9ea227
commit 7aee7c34fb

View File

@ -122,9 +122,10 @@
(forward-line (1- current-line)))) (forward-line (1- current-line))))
(defun pw-ui--update (&optional message) (defun pw-ui--update (&optional message)
(when (get-buffer pipewire-buffer) (if (get-buffer pipewire-buffer)
(with-current-buffer pipewire-buffer (with-current-buffer pipewire-buffer
(pipewire-refresh))) (pipewire-refresh))
(pw-lib-refresh))
(when message (when message
(message message))) (message message)))