From 29def026fcf984328e637d8e70c14312e67228a7 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Sun, 7 Jan 2024 05:49:17 +0900 Subject: [PATCH] =?UTF-8?q?[bugfix]=20Main=20Window:=20=E3=83=A1=E3=83=83?= =?UTF-8?q?=E3=82=BB=E3=83=BC=E3=82=B8=E5=85=A5=E5=8A=9B=E6=AC=84Disabled?= =?UTF-8?q?=E6=99=82=E3=81=A7=E3=82=82=E3=80=81=E3=83=95=E3=82=A9=E3=83=BC?= =?UTF-8?q?=E3=82=AB=E3=82=B9=E3=82=92=E5=BD=93=E3=81=A6=E3=81=A6=E3=82=A8?= =?UTF-8?q?=E3=83=B3=E3=82=BF=E3=83=BC=E3=82=AD=E3=83=BC=E3=82=92=E6=8A=BC?= =?UTF-8?q?=E3=81=9B=E3=81=B0=E3=80=81=E9=80=81=E4=BF=A1=E5=87=BA=E6=9D=A5?= =?UTF-8?q?=E3=81=A6=E3=81=97=E3=81=BE=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= =?UTF-8?q?=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view.py | 4 ++++ vrct_gui/_changeMainWindowWidgetsStatus.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/view.py b/view.py index 18f8ba77..9fc72a49 100644 --- a/view.py +++ b/view.py @@ -94,6 +94,8 @@ class View(): CALLBACK_WHEN_DETECT_WINDOW_OVERED_SIZE=self._showDisplayOverUiSizeConfirmationModal, + IS_ENTRY_MESSAGE_BOX_DISABLED=False, + # Confirmation Modal CALLBACK_HIDE_CONFIRMATION_MODAL=None, CALLBACK_ACCEPTED_CONFIRMATION_MODAL=None, @@ -510,6 +512,8 @@ class View(): def adjustedMessageBoxReturnFunction(_e): + if self.view_variable.IS_ENTRY_MESSAGE_BOX_DISABLED is True: + return if config.SEND_MESSAGE_BUTTON_TYPE != "show_and_disable_enter_key": main_window_registers.get("message_box_bind_Return")() return "break" # For deleting the next line that will be inserted when the Enter key is pressed. diff --git a/vrct_gui/_changeMainWindowWidgetsStatus.py b/vrct_gui/_changeMainWindowWidgetsStatus.py index 86bbe0f6..95fc38dc 100644 --- a/vrct_gui/_changeMainWindowWidgetsStatus.py +++ b/vrct_gui/_changeMainWindowWidgetsStatus.py @@ -142,8 +142,10 @@ def _changeMainWindowWidgetsStatus(vrct_gui, settings, view_variable, status, ta case "entry_message_box": if status == "disabled": vrct_gui.entry_message_box.configure(state="disabled", text_color=settings.ctm.TEXTBOX_ENTRY_TEXT_DISABLED_COLOR) + view_variable.IS_ENTRY_MESSAGE_BOX_DISABLED = True elif status == "normal": vrct_gui.entry_message_box.configure(state="normal", text_color=settings.ctm.TEXTBOX_ENTRY_TEXT_COLOR) + view_variable.IS_ENTRY_MESSAGE_BOX_DISABLED = False case "send_message_button":