Merge pull request #96773 from tetrapod00/resource-save-popup

[Editor] Use toast (notification) instead of dialog when saving with no open scene
This commit is contained in:
Thaddeus Crews 2024-12-10 14:15:42 -06:00
commit bfc1d2f95f
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84

View file

@ -2781,9 +2781,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
const int saved = _save_external_resources(true);
if (saved > 0) {
show_accept(
vformat(TTR("The current scene has no root node, but %d modified external resource(s) and/or plugin data were saved anyway."), saved),
TTR("OK"));
EditorToaster::get_singleton()->popup_str(vformat(TTR("The current scene has no root node, but %d modified external resource(s) and/or plugin data were saved anyway."), saved), EditorToaster::SEVERITY_INFO);
} else if (p_option == FILE_SAVE_AS_SCENE) {
// Don't show this dialog when pressing Ctrl + S to avoid interfering with script saving.
show_accept(