Skip to content

Commit

Permalink
Merge pull request godotengine#65728 from nathanfranke/longest-item
Browse files Browse the repository at this point in the history
Change project manager language dropdown to not fit to longest item.
  • Loading branch information
akien-mga committed Sep 13, 2022
2 parents 16228ba + 020b8e6 commit 6a8b2a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/project_manager.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit 6a8b2a4

Please sign in to comment.