From c40f59f7beae4141e1241cfdcd8417c5d0ad554a Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Sun, 11 Sep 2022 16:00:35 +0200 Subject: [PATCH] [modules/scroll] edge case error --- bumblebee_status/modules/core/scroll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee_status/modules/core/scroll.py b/bumblebee_status/modules/core/scroll.py index 33fdd7b..b897c5b 100644 --- a/bumblebee_status/modules/core/scroll.py +++ b/bumblebee_status/modules/core/scroll.py @@ -46,7 +46,7 @@ class Module(core.module.Module): if widget.id == self.widgets()[0].id: if self.__offset == 0: return ["warning"] - if self.__offset + self.__width >= self.__widgetcount: + elif self.__offset + self.__width >= self.__widgetcount: return ["warning"] return []