From 85e1575b7f3735eade6c3c6b72c62c92b8dc4f98 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Thu, 14 Mar 2024 09:48:27 -0400 Subject: [PATCH] fix(tasks): ensure ui can be cached if auto update items is disabled (#371) --- Contents/Code/scheduled_tasks.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Contents/Code/scheduled_tasks.py b/Contents/Code/scheduled_tasks.py index 6f8912c5..cb839352 100644 --- a/Contents/Code/scheduled_tasks.py +++ b/Contents/Code/scheduled_tasks.py @@ -113,9 +113,10 @@ def setup_scheduling(): job_func=run_threaded, target=scheduled_update ) - schedule.every(max(15, int(Prefs['int_update_database_cache_interval']))).minutes.do( - job_func=run_threaded, - target=cache_data - ) + + schedule.every(max(15, int(Prefs['int_update_database_cache_interval']))).minutes.do( + job_func=run_threaded, + target=cache_data + ) run_threaded(target=schedule_loop, daemon=True) # start the schedule loop in a thread