[bugfix/chore] Main Window: Selectable Translation Engines.

・ドロップダウンメニューの文言修正。(CTranslate2の表示修正と、デフォルトである旨を追加)
・幅が規定値より超えた時の処理でエラーが発生するのを修正
This commit is contained in:
Sakamoto Shiina
2024-01-14 19:11:09 +09:00
parent 22e24514e0
commit 6cd56991c3
6 changed files with 35 additions and 27 deletions

View File

@@ -13,6 +13,7 @@ class UiScalingManager():
self.main_window_cover = SimpleNamespace()
self.error_message_window = SimpleNamespace()
self.confirmation_modal = SimpleNamespace()
self.dropdown_menu_window = SimpleNamespace()
self._calculatedUiSizes()
@@ -170,7 +171,7 @@ class UiScalingManager():
self.confirmation_modal.BUTTONS_IPADY = self._calculateUiSize(6)
# Dropdown Menu Window
self.config_window.MARGIN_WIDTH = self._calculateUiSize(16)
self.dropdown_menu_window.MARGIN_WIDTH = self._calculateUiSize(16)
# Config Window
self.config_window.DEFAULT_WIDTH = self._calculateUiSize(1080)