From fcd32dcde63767b244f5ccc70a13164e49070ec8 Mon Sep 17 00:00:00 2001 From: tetrapod00 <145553014+tetrapod00@users.noreply.github.com> Date: Mon, 9 Sep 2024 18:14:40 -0700 Subject: [PATCH] [Editor] Use toast (notification) instead of dialog when saving with no open scene --- editor/editor_node.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 36b43b7e9b7..7e4491a4a88 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -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(