From 45ddacf4d06597731ceba7818081ae8f9b5c451a Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Wed, 9 Oct 2024 14:24:10 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[bugfix]=20Model=20:=20Update?= =?UTF-8?q?=E3=81=AEUI=E8=A1=A8=E7=A4=BA=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model.py | 6 ++---- view.py | 5 +++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/model.py b/model.py index 3184055e..df5bc8ba 100644 --- a/model.py +++ b/model.py @@ -1,6 +1,4 @@ import gc -import tempfile -from zipfile import ZipFile from subprocess import Popen from os import makedirs as os_makedirs from os import path as os_path @@ -11,9 +9,7 @@ from time import sleep from queue import Queue from threading import Thread from requests import get as requests_get -import webbrowser -from typing import Callable from flashtext import KeywordProcessor from models.translation.translation_translator import Translator from models.transcription.transcription_utils import getInputDevices, getOutputDevices @@ -335,6 +331,8 @@ class Model: traceback.print_exc(file=f) # run updater Popen(program_name, cwd=current_directory) + while True: + sleep(1) @staticmethod def reStartSoftware(): diff --git a/view.py b/view.py index 3c81c5fb..848e10a7 100644 --- a/view.py +++ b/view.py @@ -1784,10 +1784,11 @@ class View(): self._hideConfirmationModal() vrct_gui.withdraw() - vrct_gui.updating_window.showUpdatingWindow() + # vrct_gui.updating_window.showUpdatingWindow() def func(**kwargs): - vrct_gui.updating_window.updateDownloadProgress(**kwargs) + pass + # vrct_gui.updating_window.updateDownloadProgress(**kwargs) callFunctionIfCallable(self.view_variable.CALLBACK_UPDATE_SOFTWARE, func)