[Editor] Use toast (notification) instead of dialog when saving with no open scene
This commit is contained in:
parent
0f5f3bc954
commit
fcd32dcde6
1 changed files with 1 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue