Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
helgeerbe committed Feb 19, 2024
1 parent db9464f commit 493dbf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/picframe/viewer_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!)
Expand Down

0 comments on commit 493dbf4

Please sign in to comment.