[Refactor] View: 言語リストは view以下で表示用は表示用として処理するように。

※controller.pyからview.pyへ言語リストを渡す時、その場で表示用の文字列を作っていたのをview.py内で処理。
This commit is contained in:
Sakamoto Shiina
2024-03-09 17:15:06 +09:00
parent cb78942b8d
commit 4a85823439
3 changed files with 8 additions and 9 deletions

View File

@@ -993,7 +993,7 @@ def createMainWindow(splash):
"callback_your_language": setYourLanguageAndCountry,
"callback_target_language": setTargetLanguageAndCountry,
"values": [f"{v['language']} ({v['country']})" for v in model.getListLanguageAndCountry()],
"values": model.getListLanguageAndCountry(),
"callback_swap_languages": swapYourLanguageAndTargetLanguage,
"callback_selected_language_preset_tab": callbackSelectedLanguagePresetTab,