🐛[bugfix] model : overlay 200回表示後のリセット処理でエラーが発生した場合のみエラーログを保存するように修正
This commit is contained in:
@@ -128,11 +128,14 @@ class Overlay:
|
|||||||
try:
|
try:
|
||||||
self.overlay.setOverlayRaw(self.handle[size], img, width, height, 4)
|
self.overlay.setOverlayRaw(self.handle[size], img, width, height, 4)
|
||||||
except Exception:
|
except Exception:
|
||||||
errorLogging()
|
|
||||||
self.reStartOverlay()
|
self.reStartOverlay()
|
||||||
while self.initialized is False:
|
while self.initialized is False:
|
||||||
time.sleep(0.1)
|
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.updateOpacity(self.settings[size]["opacity"], size)
|
||||||
self.lastUpdate[size] = time.monotonic()
|
self.lastUpdate[size] = time.monotonic()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user