From 01cbb9c30b70c6516b834f85e09468964abdec47 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Sun, 7 Jan 2024 06:19:25 +0900 Subject: [PATCH] =?UTF-8?q?[Update]=20config.ENABLE=5FSPEAKER2CHATBOX=20Tr?= =?UTF-8?q?ue=E6=99=82=E3=81=AB=E3=81=AF=E3=82=A2=E3=83=83=E3=83=97?= =?UTF-8?q?=E3=83=87=E3=83=BC=E3=83=88=E7=A2=BA=E8=AA=8D=E3=82=92=E3=81=97?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=E3=80=82Speaker2C?= =?UTF-8?q?hatbox=E6=A9=9F=E8=83=BD=E4=BD=BF=E7=94=A8=E8=80=85=E3=81=8C?= =?UTF-8?q?=E5=A4=9A=E3=81=8F=E3=81=AA=E3=81=A3=E3=81=A6=E3=80=81=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E3=81=8C=E5=A4=A7=E5=A4=89=E3=81=A8=E6=80=9D=E3=81=86?= =?UTF-8?q?=E3=81=BE=E3=81=A7=E3=81=AF=E5=80=8B=E5=88=A5=E3=81=AB=E6=89=8B?= =?UTF-8?q?=E5=8B=95=E3=81=A7=E9=85=8D=E5=B8=83=E3=81=99=E3=82=8B=E6=96=B9?= =?UTF-8?q?=E9=87=9D=E3=80=82=20=E3=81=BE=E3=81=9F=E3=80=81Speaker2Chatbox?= =?UTF-8?q?=E6=A9=9F=E8=83=BD=E3=81=8CON=E3=81=AB=E3=81=AA=E3=81=A3?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=82=8B=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E3=81=AB=E3=81=AF=E3=80=81=E3=81=9D=E3=81=AE=E6=97=A8?= =?UTF-8?q?=E3=82=92=E8=A8=AD=E5=AE=9A=E7=94=BB=E9=9D=A2=E3=83=90=E3=83=BC?= =?UTF-8?q?=E3=82=B8=E3=83=A7=E3=83=B3=E6=83=85=E5=A0=B1=E9=83=A8=E5=88=86?= =?UTF-8?q?=E3=81=AB=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller.py | 5 +++-- view.py | 7 ++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/controller.py b/controller.py index f81ec108..565fc0fa 100644 --- a/controller.py +++ b/controller.py @@ -813,8 +813,9 @@ def createMainWindow(): model.addKeywords() # check Software Updated - if model.checkSoftwareUpdated() is True: - view.showUpdateAvailableButton() + if config.ENABLE_SPEAKER2CHATBOX is False: + if model.checkSoftwareUpdated() is True: + view.showUpdateAvailableButton() # init logger if config.ENABLE_LOGGER is True: diff --git a/view.py b/view.py index 9fc72a49..ef8bf6c2 100644 --- a/view.py +++ b/view.py @@ -30,6 +30,11 @@ class View(): ui_language=config.UI_LANGUAGE, ) + if config.ENABLE_SPEAKER2CHATBOX is False: + VERSION_TEXT=i18n.t("config_window.version", version=config.VERSION) + else: + VERSION_TEXT=i18n.t("config_window.version", version=config.VERSION) + " (Speaker2Chatbox)" + self.settings = SimpleNamespace() theme = get_appearance_mode() if config.APPEARANCE_THEME == "System" else config.APPEARANCE_THEME all_ctm = ColorThemeManager(theme) @@ -180,7 +185,7 @@ class View(): ACTIVE_SETTING_BOX_TAB_ATTR_NAME="side_menu_tab_appearance", CALLBACK_SELECTED_SETTING_BOX_TAB=None, VAR_ERROR_MESSAGE=StringVar(value=""), - VAR_VERSION=StringVar(value=i18n.t("config_window.version", version=config.VERSION)), + VAR_VERSION=StringVar(value=VERSION_TEXT), VAR_CONFIG_WINDOW_TITLE=StringVar(value=i18n.t("config_window.config_title")), VAR_CONFIG_WINDOW_COMPACT_MODE_LABEL=StringVar(value=i18n.t("config_window.compact_mode")), VAR_CONFIG_WINDOW_RESTART_BUTTON_LABEL=StringVar(value=i18n.t("config_window.restart_message")),