mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Check for unsaved changes when closing a scene
This commit is contained in:
@@ -341,9 +341,9 @@ void EditorPlugin::clear() {
|
||||
GDVIRTUAL_CALL(_clear);
|
||||
}
|
||||
|
||||
String EditorPlugin::get_unsaved_status() const {
|
||||
String EditorPlugin::get_unsaved_status(const String &p_for_scene) const {
|
||||
String ret;
|
||||
GDVIRTUAL_CALL(_get_unsaved_status, ret);
|
||||
GDVIRTUAL_CALL(_get_unsaved_status, p_for_scene, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -599,7 +599,7 @@ void EditorPlugin::_bind_methods() {
|
||||
GDVIRTUAL_BIND(_get_state);
|
||||
GDVIRTUAL_BIND(_set_state, "state");
|
||||
GDVIRTUAL_BIND(_clear);
|
||||
GDVIRTUAL_BIND(_get_unsaved_status);
|
||||
GDVIRTUAL_BIND(_get_unsaved_status, "for_scene");
|
||||
GDVIRTUAL_BIND(_save_external_data);
|
||||
GDVIRTUAL_BIND(_apply_changes);
|
||||
GDVIRTUAL_BIND(_get_breakpoints);
|
||||
|
||||
Reference in New Issue
Block a user