1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

[Editor] Use toast (notification) instead of dialog when saving with no open scene

This commit is contained in:
tetrapod00
2024-09-09 18:14:40 -07:00
parent 0f5f3bc954
commit fcd32dcde6

View File

@@ -2768,9 +2768,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(