@@ -248,8 +248,10 @@ static int64_t init_embed_parent_window_id = 0;
248248#ifdef TOOLS_ENABLED
249249static bool init_display_scale_found = false ;
250250static int init_display_scale = 0 ;
251+ static bool init_custom_scale_found = false ;
251252static float init_custom_scale = 1.0 ;
252253static bool init_expand_to_title = false ;
254+ static bool init_expand_to_title_found = false ;
253255#endif
254256static bool use_custom_res = true ;
255257static bool force_res = false ;
@@ -2960,7 +2962,7 @@ Error Main::setup2(bool p_show_boot_logo) {
29602962 prefer_wayland_found = true ;
29612963 }
29622964
2963- while (!screen_found || !prefer_wayland_found || !tablet_found || !ac_found) {
2965+ while (!screen_found || !init_expand_to_title_found || !init_display_scale_found || !init_custom_scale_found || ! prefer_wayland_found || !tablet_found || !ac_found) {
29642966 assign = Variant ();
29652967 next_tag.fields .clear ();
29662968 next_tag.name = String ();
@@ -2979,22 +2981,22 @@ Error Main::setup2(bool p_show_boot_logo) {
29792981 restore_editor_window_layout = value.operator int () == EditorSettings::InitialScreen::INITIAL_SCREEN_AUTO;
29802982 }
29812983 }
2982- if (assign == " interface/accessibility/accessibility_support" ) {
2984+ if (!ac_found && assign == " interface/accessibility/accessibility_support" ) {
29832985 accessibility_mode_editor = value;
29842986 ac_found = true ;
2985- } else if (assign == " interface/editor/expand_to_title" ) {
2987+ } else if (!init_expand_to_title_found && assign == " interface/editor/expand_to_title" ) {
29862988 init_expand_to_title = value;
2987- } else if (assign == " interface/editor/display_scale" ) {
2989+ init_expand_to_title_found = true ;
2990+ } else if (!init_display_scale_found && assign == " interface/editor/display_scale" ) {
29882991 init_display_scale = value;
29892992 init_display_scale_found = true ;
2990- } else if (assign == " interface/editor/custom_display_scale" ) {
2993+ } else if (!init_custom_scale_found && assign == " interface/editor/custom_display_scale" ) {
29912994 init_custom_scale = value;
2995+ init_custom_scale_found = true ;
29922996 } else if (!prefer_wayland_found && assign == " run/platforms/linuxbsd/prefer_wayland" ) {
29932997 prefer_wayland = value;
29942998 prefer_wayland_found = true ;
2995- }
2996-
2997- if (!tablet_found && assign == " interface/editor/tablet_driver" ) {
2999+ } else if (!tablet_found && assign == " interface/editor/tablet_driver" ) {
29983000 tablet_driver_editor = value;
29993001 tablet_found = true ;
30003002 }
@@ -3224,7 +3226,7 @@ Error Main::setup2(bool p_show_boot_logo) {
32243226 }
32253227
32263228#ifdef TOOLS_ENABLED
3227- if (project_manager && init_display_scale_found ) {
3229+ if (project_manager) {
32283230 float ui_scale = init_custom_scale;
32293231 switch (init_display_scale) {
32303232 case 0 :
0 commit comments