thread theme get
This commit is contained in:
parent
87a09ba29f
commit
b50cdd3165
1 changed files with 11 additions and 2 deletions
|
@ -5,6 +5,7 @@ from theme_ctk_auto import generate_theme_json
|
|||
|
||||
import tempfile
|
||||
import os
|
||||
import threading
|
||||
|
||||
def get_temp_folder():
|
||||
# Get the current user's temporary directory
|
||||
|
@ -24,9 +25,17 @@ def main_win():
|
|||
col_background = None
|
||||
col_theme = None
|
||||
is_dark = None
|
||||
|
||||
def theme_thread():
|
||||
nonlocal col_background, col_theme, is_dark
|
||||
col_background, col_theme, is_dark = get_theme_win()
|
||||
generate_theme_json(dow_path, col_theme, is_dark)
|
||||
|
||||
theme_thread = threading.Thread(target=theme_thread)
|
||||
theme_thread.start()
|
||||
|
||||
get_deps_win(dow_path)
|
||||
col_background, col_theme, is_dark = get_theme_win()
|
||||
generate_theme_json(dow_path, col_theme, is_dark)
|
||||
|
||||
theme_thread.join()
|
||||
|
||||
run_installer(dow_path, is_dark)
|
Reference in a new issue