From 7b57362f81cca06ff5cc0ff49a121876de8ef368 Mon Sep 17 00:00:00 2001 From: fdev31 Date: Wed, 3 Apr 2024 23:48:51 +0200 Subject: [PATCH] linting --- pyprland/command.py | 2 +- pyprland/plugins/magnify.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pyprland/command.py b/pyprland/command.py index c0d9ccf..9f86b1a 100755 --- a/pyprland/command.py +++ b/pyprland/command.py @@ -333,7 +333,7 @@ async def run_client(): manager = Pyprland() if sys.argv[1] == "version": - print("2.1.3-8") # Automatically updated version + print('2.1.3-9') # Automatically updated version return if sys.argv[1] in ("--help", "-h", "help"): diff --git a/pyprland/plugins/magnify.py b/pyprland/plugins/magnify.py index d1b3faf..3f23e9a 100644 --- a/pyprland/plugins/magnify.py +++ b/pyprland/plugins/magnify.py @@ -20,8 +20,7 @@ async def run_zoom(self, *args): self.cur_factor = value # sanity check - if self.cur_factor <= 1.0: - self.cur_factor = 1 + self.cur_factor = max(self.cur_factor, 1) # apply the factor self.zoomed = self.cur_factor != 1