1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Cleanup embed subwindows getters

This commit is contained in:
kobewi
2022-03-13 16:18:44 +01:00
parent 47c35f5b96
commit 3c53752b4a
5 changed files with 8 additions and 19 deletions

View File

@@ -2247,7 +2247,7 @@ bool Main::start() {
bool embed_subwindows = GLOBAL_DEF("display/window/subwindows/embed_subwindows", true);
if (OS::get_singleton()->is_single_window() || (!project_manager && !editor && embed_subwindows)) {
sml->get_root()->set_embed_subwindows_hint(true);
sml->get_root()->set_embedding_subwindows(true);
}
ResourceLoader::add_custom_loaders();
ResourceSaver::add_custom_savers();
@@ -2429,7 +2429,7 @@ bool Main::start() {
"interface/editor/single_window_mode");
if (editor_embed_subwindows) {
sml->get_root()->set_embed_subwindows_hint(true);
sml->get_root()->set_embedding_subwindows(true);
}
}
#endif