Adding OK button, bugfixes

This commit is contained in:
2024-01-16 11:46:36 +01:00
parent 506bb45dda
commit c04ec20704
5 changed files with 30 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ class Loop():
self.start_times = suntimes.day_periods
# Position is given by user
elif self.prefs.prefs[PrefenceEnums.PERIOD_SOURCE] == PeriodSourceEnum.CUSTOMLOCATION:
elif self.prefs.period_source == PeriodSourceEnum.CUSTOMLOCATION:
suntimes.calc_suntimes(float(self.prefs.latitude_custom), float(self.prefs.longitude_custom))
self.start_times = suntimes.day_periods