Skip to content

Commit 57dfebd

Browse files
authored
Update main_window.py
1 parent cfc62cc commit 57dfebd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main_window.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,11 +1361,15 @@ def import_config(self):
13611361

13621362
# start process of importing configuration
13631363
def start_importing(self):
1364+
def import_folder():
1365+
shutil.copytree(self.import_folder, f"{CACHE}/import_config", dirs_exist_ok=True, ignore_dangling_symlinks=True)
1366+
13641367
try:
13651368
e_o = False
13661369
os.system("echo > import_status")
13671370
if self.is_folder == True:
1368-
shutil.copytree(self.import_folder, f"{CACHE}/import_config", dirs_exist_ok=True, ignore_dangling_symlinks=True)
1371+
imp_folder_thread = Thread(target=import_folder)
1372+
imp_folder_thread.start()
13691373
else:
13701374
if ".sd.zip" in self.import_file:
13711375
with zipfile.ZipFile(self.import_file, "r") as zip_ar:

0 commit comments

Comments
 (0)