From 6fe403315a5170284c88b657de4f322dfdb60827 Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Tue, 18 Feb 2025 15:33:45 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[bugfix]=20model=20:=20overlay=2020?= =?UTF-8?q?0=E5=9B=9E=E8=A1=A8=E7=A4=BA=E5=BE=8C=E3=81=AE=E3=83=AA?= =?UTF-8?q?=E3=82=BB=E3=83=83=E3=83=88=E5=87=A6=E7=90=86=E3=81=A7=E3=82=A8?= =?UTF-8?q?=E3=83=A9=E3=83=BC=E3=81=8C=E7=99=BA=E7=94=9F=E3=81=97=E3=81=9F?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=81=AE=E3=81=BF=E3=82=A8=E3=83=A9=E3=83=BC?= =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=92=E4=BF=9D=E5=AD=98=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-python/models/overlay/overlay.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src-python/models/overlay/overlay.py b/src-python/models/overlay/overlay.py index a3abfdec..92c24ab9 100644 --- a/src-python/models/overlay/overlay.py +++ b/src-python/models/overlay/overlay.py @@ -128,11 +128,14 @@ class Overlay: try: self.overlay.setOverlayRaw(self.handle[size], img, width, height, 4) except Exception: - errorLogging() self.reStartOverlay() while self.initialized is False: time.sleep(0.1) - self.overlay.setOverlayRaw(self.handle[size], img, width, height, 4) + try: + self.overlay.setOverlayRaw(self.handle[size], img, width, height, 4) + except Exception: + errorLogging() + self.updateOpacity(self.settings[size]["opacity"], size) self.lastUpdate[size] = time.monotonic()