Bump Linux theme refresh timer back up to 5 minutes (#2331)

On Linux distributions that do not yet support org.freedesktop.appearance.color-scheme (most distros released prior to 2022), querying DBus for the missing property produces verbose journal entries over Anki's entire runtime.
This commit is contained in:
Aristotelis 2023-01-18 13:24:59 +01:00 committed by GitHub
parent 943dddf28f
commit 476e3af759
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1074,8 +1074,10 @@ title="{}" {}>{}</button>""".format(
theme_manager.apply_style()
if is_lin:
# On Linux, the check requires invoking an external binary,
# and can potentially produce verbose logs on systems where
# the preferred theme cannot be determined,
# which we don't want to be doing frequently
interval_secs = 5
interval_secs = 300
else:
interval_secs = 2
self.progress.timer(