This commit is contained in:
Kovid Goyal 2022-04-12 21:19:28 +05:30
parent b8866371a3
commit aabadd8517
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -230,6 +230,7 @@ class Boss:
global_shortcuts: Dict[str, SingleKey]
):
set_layout_options(opts)
self.update_check_started = False
self.clipboard_buffers: Dict[str, str] = {}
self.update_check_process: Optional['PopenType[bytes]'] = None
self.window_id_map: WeakValueDictionary[int, Window] = WeakValueDictionary()
@ -735,7 +736,7 @@ class Boss:
else:
self.startup_first_child(first_os_window_id)
if get_options().update_check_interval > 0 and not hasattr(self, 'update_check_started') and getattr(sys, 'frozen', False):
if get_options().update_check_interval > 0 and not self.update_check_started and getattr(sys, 'frozen', False):
from .update_check import run_update_check
run_update_check(get_options().update_check_interval * 60 * 60)
self.update_check_started = True