Merge pull request #9448 from Noshyaar/pr1

EditorNode: request attention when quit while minimized
This commit is contained in:
Rémi Verschelde 2017-06-30 19:15:04 +02:00 committed by GitHub
commit e2e73ec906

View File

@ -2462,6 +2462,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
confirmation->popup_centered_minsize();
} else {
_discard_changes();
break;
}
} else {
@ -2488,6 +2489,8 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
}
}
if (OS::get_singleton()->is_window_minimized())
OS::get_singleton()->request_attention();
break;
}