From 4ce4bbda102d92b642dc07ee6f7c3dad1bca6abc Mon Sep 17 00:00:00 2001 From: Milan Zamazal Date: Tue, 12 Jul 2022 21:32:56 +0200 Subject: [PATCH] Simplify a bit a condition in pipewire--current-object --- pipewire.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipewire.el b/pipewire.el index d97d132..4d67b2b 100644 --- a/pipewire.el +++ b/pipewire.el @@ -176,7 +176,7 @@ The indicator is displayed only on graphical terminals." (let* ((id (pipewire--current-object-id)) (object (when id (pw-lib-get-object id)))) (when (and object - (not (null allowed-types)) + allowed-types (not (member (pw-lib-object-type object) allowed-types))) (setq object nil)) (when (and use-default-p (not object))