You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
EditorNode: request attention when quit while minimized
This commit is contained in:
@@ -2462,6 +2462,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
|
|||||||
confirmation->popup_centered_minsize();
|
confirmation->popup_centered_minsize();
|
||||||
} else {
|
} else {
|
||||||
_discard_changes();
|
_discard_changes();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} 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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user