Merge pull request #20311 from YeldhamDev/update_spinner_popup_radio
Make Update Spinner popup use radio items
This commit is contained in:
commit
002bacc01f
1 changed files with 2 additions and 2 deletions
|
@ -5289,8 +5289,8 @@ EditorNode::EditorNode() {
|
||||||
update_menu->set_icon(gui_base->get_icon("Progress1", "EditorIcons"));
|
update_menu->set_icon(gui_base->get_icon("Progress1", "EditorIcons"));
|
||||||
update_menu->get_popup()->connect("id_pressed", this, "_menu_option");
|
update_menu->get_popup()->connect("id_pressed", this, "_menu_option");
|
||||||
p = update_menu->get_popup();
|
p = update_menu->get_popup();
|
||||||
p->add_check_item(TTR("Update Always"), SETTINGS_UPDATE_ALWAYS);
|
p->add_radio_check_item(TTR("Update Always"), SETTINGS_UPDATE_ALWAYS);
|
||||||
p->add_check_item(TTR("Update Changes"), SETTINGS_UPDATE_CHANGES);
|
p->add_radio_check_item(TTR("Update Changes"), SETTINGS_UPDATE_CHANGES);
|
||||||
p->add_separator();
|
p->add_separator();
|
||||||
p->add_check_item(TTR("Disable Update Spinner"), SETTINGS_UPDATE_SPINNER_HIDE);
|
p->add_check_item(TTR("Disable Update Spinner"), SETTINGS_UPDATE_SPINNER_HIDE);
|
||||||
int update_always = EditorSettings::get_singleton()->get_project_metadata("editor_options", "update_always", false);
|
int update_always = EditorSettings::get_singleton()->get_project_metadata("editor_options", "update_always", false);
|
||||||
|
|
Loading…
Reference in a new issue