diff --git a/vrct_gui/updating_window/UpdatingWindow.py b/vrct_gui/updating_window/UpdatingWindow.py index f9b90c8c..d84fd7dd 100644 --- a/vrct_gui/updating_window/UpdatingWindow.py +++ b/vrct_gui/updating_window/UpdatingWindow.py @@ -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 diff --git a/vrct_gui/vrct_gui.py b/vrct_gui/vrct_gui.py index 6f9183b9..4b94768e 100644 --- a/vrct_gui/vrct_gui.py +++ b/vrct_gui/vrct_gui.py @@ -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)