From dff99a6585c4dde7abed2cd13e81d536d1bd1bdd Mon Sep 17 00:00:00 2001 From: fdev31 Date: Wed, 8 Nov 2023 21:12:06 +0100 Subject: [PATCH] tiny logic fix --- pyprland/plugins/scratchpads.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyprland/plugins/scratchpads.py b/pyprland/plugins/scratchpads.py index 285041b..c56aa69 100644 --- a/pyprland/plugins/scratchpads.py +++ b/pyprland/plugins/scratchpads.py @@ -250,10 +250,10 @@ def set(self, scratch: Scratch, name=None, pid=None, addr=None): if name is not None: d = self._by_name v = name - if pid is not None: + elif pid is not None: d = self._by_pid v = pid - if addr is not None: + elif addr is not None: d = self._by_addr v = addr d[v] = scratch