diff options
author | Nathan Franke <me@nathan.sh> | 2022-09-12 19:59:16 -0500 |
---|---|---|
committer | Nathan Franke <me@nathan.sh> | 2022-09-12 19:59:16 -0500 |
commit | 020b8e6c686ad99d16907a4af73c1d1fb0666a6f (patch) | |
tree | 55205e7f2ced48002ecbd13cf1ee888cb2e239b0 | |
parent | 16228ba3e27b57df48256fcdf34670a25b3d52b0 (diff) |
project manager language OptionButton fit to longest item
-rw-r--r-- | editor/project_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 270e04050e..a644babfc2 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -2724,9 +2724,10 @@ ProjectManager::ProjectManager() { settings_hb->add_child(h_spacer); language_btn = memnew(OptionButton); - language_btn->set_flat(true); language_btn->set_icon(get_theme_icon(SNAME("Environment"), SNAME("EditorIcons"))); language_btn->set_focus_mode(Control::FOCUS_NONE); + language_btn->set_fit_to_longest_item(false); + language_btn->set_flat(true); language_btn->connect("item_selected", callable_mp(this, &ProjectManager::_language_selected)); #ifdef ANDROID_ENABLED // The language selection dropdown doesn't work on Android (as the setting isn't saved), see GH-60353. |