Move set zoom above script init
(cherry picked from commit 429a75ea78e6838c0138767eb708a6d367fd4792)
This commit is contained in:
1 parent
f697eea0a4
commit
146e3be4a7
1 file changed
+2
-2
@@ -3211,6 +3211,8 @@ void ScriptEditor::set_window_layout(Ref<ConfigFile> p_layout) {
|
||||
HashSet<String> loaded_scripts;
|
||||
List<String> extensions = _get_recognized_extensions();
|
||||
|
||||
_set_script_zoom_factor(p_layout->get_value("ScriptEditor", "zoom_factor", 1.0f));
|
||||
|
||||
for (const Variant &v : scripts) {
|
||||
String path = v;
|
||||
|
||||
@@ -3306,8 +3308,6 @@ void ScriptEditor::set_window_layout(Ref<ConfigFile> p_layout) {
|
||||
}
|
||||
}
|
||||
|
||||
_set_script_zoom_factor(p_layout->get_value("ScriptEditor", "zoom_factor", 1.0f));
|
||||
|
||||
restoring_layout = false;
|
||||
|
||||
_update_script_names();
|
||||
|
||||
Reference in new issue
Block a user