From 493dbf4cf117cbc18664de2637e42d3d7328948c Mon Sep 17 00:00:00 2001 From: helgeerbe Date: Mon, 19 Feb 2024 11:54:51 +0100 Subject: [PATCH] fix syntax error --- src/picframe/viewer_display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/picframe/viewer_display.py b/src/picframe/viewer_display.py index 7a62d8e..0710bd2 100644 --- a/src/picframe/viewer_display.py +++ b/src/picframe/viewer_display.py @@ -522,7 +522,7 @@ def slideshow_is_running(self, pics=None, time_delay=200.0, fade_time=10.0, paus # this sets alpha for the TextBlock from 0 to 1 then back to 0 if self.__show_text_tm > 0: dt = 1.0 - (self.__name_tm - tm) / self.__show_text_tm - else + else: dt = 1 if dt > 0.995: dt = 1 # ensure that calculated alpha value fully reaches 0 (TODO: Improve!)