[bugfix] Config Window Font Family CALLBACK関数登録のし忘れ(テスト用にコメントアウトしたままだった)と、実際にフォント選択時に正しく関数が動いていなかったのを修正

This commit is contained in:
Sakamoto Shiina
2023-09-04 18:29:04 +09:00
parent 90668b1e7a
commit fb22ffa31e
2 changed files with 2 additions and 18 deletions

18
view.py
View File

@@ -249,25 +249,10 @@ class View():
# Appearance Tab
vrct_gui.config_window.CALLBACK_SET_TRANSPARENCY = config_window["callback_set_transparency"]
# vrct_gui.config_window.sb__transparency_slider.configure(variable=IntVar(value=config.TRANSPARENCY))
vrct_gui.config_window.CALLBACK_SET_APPEARANCE = config_window["callback_set_appearance"]
vrct_gui.config_window.CALLBACK_SET_UI_SCALING = config_window["callback_set_ui_scaling"]
self.view_variable.CALLBACK_SET_FONT_FAMILY = config_window["callback_set_font_family"]
# vrct_gui.config_window.sb__optionmenu_font_family.configure(values=self.view_variable.LIST_FONT_FAMILY)
# self.view_variable.VAR_FONT_FAMILY = StringVar(value=config.FONT_FAMILY)
# vrct_gui.config_window.sb__optionmenu_font_family.configure(variable=self.view_variable.VAR_FONT_FAMILY)
# vrct_gui.config_window.sb__optionmenu_font_family.configure(variable=StringVar(value=config.FONT_FAMILY))
# vrct_gui.config_window.sb__optionmenu_font_family.configure(values=["test", "from", "view.py"])
vrct_gui.config_window.CALLBACK_SET_FONT_FAMILY = config_window["callback_set_font_family"]
vrct_gui.config_window.CALLBACK_SET_UI_LANGUAGE = config_window["callback_set_ui_language"]
@@ -281,7 +266,6 @@ class View():
vrct_gui.config_window.CALLBACK_SET_MIC_DEVICE = config_window["callback_set_mic_device"]
self.updateList_MicDevice(config_window["list_mic_device"])
vrct_gui.config_window.CALLBACK_SET_MIC_ENERGY_THRESHOLD = config_window["callback_set_mic_energy_threshold"]
vrct_gui.config_window.CALLBACK_SET_MIC_DYNAMIC_ENERGY_THRESHOLD = config_window["callback_set_mic_dynamic_energy_threshold"]
vrct_gui.config_window.CALLBACK_CHECK_MIC_THRESHOLD = config_window["callback_check_mic_threshold"]

View File

@@ -19,7 +19,7 @@ def createSettingBox_Appearance(setting_box_wrapper, config_window, settings):
callFunctionIfCallable(config_window.CALLBACK_SET_UI_SCALING, value)
def optionmenu_font_family_callback(value):
callFunctionIfCallable(config_window.view_variable.CALLBACK_SET_FONT_FAMILY, value)
callFunctionIfCallable(config_window.CALLBACK_SET_FONT_FAMILY, value)
def optionmenu_ui_language_callback(value):
callFunctionIfCallable(config_window.CALLBACK_SET_UI_LANGUAGE, value)