[bugfix/refactor] weightタイプ変更処理中は、weightタイプ変更と翻訳機能オンオフwidgetをdisabledに。
理由: weightタイプ変更処理は非同期で、変更処理中に上記widgetを触れるとUIへの変更処理順が意図した順番と変わってしまうため。 その他リファクタリングあり。
This commit is contained in:
@@ -210,6 +210,8 @@ class _SettingBoxGenerator():
|
||||
)
|
||||
setattr(self.config_window, switch_attr_name, switch_widget)
|
||||
|
||||
self.config_window.sb__widgets[switch_attr_name].switch_box = switch_widget
|
||||
|
||||
switch_widget.grid(row=1, column=SETTING_BOX_COLUMN, sticky="e")
|
||||
|
||||
return setting_box_frame
|
||||
@@ -245,6 +247,8 @@ class _SettingBoxGenerator():
|
||||
)
|
||||
setattr(self.config_window, checkbox_attr_name, checkbox_widget)
|
||||
|
||||
self.config_window.sb__widgets[checkbox_attr_name].checkbox = checkbox_widget
|
||||
|
||||
checkbox_widget.grid(row=1, column=SETTING_BOX_COLUMN, sticky="e")
|
||||
|
||||
return setting_box_frame
|
||||
|
||||
Reference in New Issue
Block a user