Disable 'run' button if any project not selected and tiny refactoring
(cherry picked from commit 965b6ac273
)
This commit is contained in:
parent
66c0be642f
commit
a519dcd576
|
@ -717,9 +717,11 @@ void ProjectManager::_update_project_buttons() {
|
||||||
item->update();
|
item->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
erase_btn->set_disabled(selected_list.size() < 1);
|
bool empty_selection = selected_list.empty();
|
||||||
open_btn->set_disabled(selected_list.size() < 1);
|
erase_btn->set_disabled(empty_selection);
|
||||||
rename_btn->set_disabled(selected_list.size() < 1);
|
open_btn->set_disabled(empty_selection);
|
||||||
|
rename_btn->set_disabled(empty_selection);
|
||||||
|
run_btn->set_disabled(empty_selection);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectManager::_panel_input(const Ref<InputEvent> &p_ev, Node *p_hb) {
|
void ProjectManager::_panel_input(const Ref<InputEvent> &p_ev, Node *p_hb) {
|
||||||
|
|
Loading…
Reference in New Issue