[Update] アップデート中画面をタスクバーなどからウィンドウを閉じた時、メインプロセスも終了するように。

※アプデ中の終了(中断)操作は、ユーザーの自己責任とする。
This commit is contained in:
Sakamoto Shiina
2024-04-18 13:16:59 +09:00
parent 680ca8a955
commit e19cc9bccf
2 changed files with 3 additions and 2 deletions

View File

@@ -5,13 +5,14 @@ from customtkinter import CTkImage, CTkLabel, CTkToplevel, CTkProgressBar, CTkFr
from ..ui_utils import openImageKeepAspectRatio, getImageFileFromUiUtils, setGeometryToCenterOfScreen, fadeInAnimation, generateGradientColor, getImagePath
class UpdatingWindow(CTkToplevel):
def __init__(self):
def __init__(self, vrct_gui):
super().__init__()
self.withdraw()
self.overrideredirect(True)
self.configure(fg_color="#292a2d")
self.title("Updating...")
self.after(200, lambda: self.iconbitmap(getImagePath("vrct_logo_mark_black.ico")))
self.protocol("WM_DELETE_WINDOW", vrct_gui._quitVRCT)
# self.wm_attributes("-toolwindow", True)
self.is_showed_downloading_process = False
self.is_showed_unpackaging_process = False

View File

@@ -175,7 +175,7 @@ class VRCT_GUI(CTk):
init_scaling=(self._view_variable.VAR_TEXTBOX_UI_SCALING.get()/100)
)
self.updating_window = UpdatingWindow()
self.updating_window = UpdatingWindow(vrct_gui=self)