summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraaronp64 <aaronp.code@gmail.com>2024-05-11 20:13:29 -0400
committeraaronp64 <aaronp.code@gmail.com>2024-05-11 20:13:29 -0400
commit245be6f9c141d018620b05cadce82be2e1381c1d (patch)
tree9e1a0019f368f9c0193f3a59fb06d8a3509df756
parentbdc0316217940a8ccc80ce536547d42e6477adf4 (diff)
downloadredot-engine-245be6f9c141d018620b05cadce82be2e1381c1d.tar.gz
Move "Add a new scene" button when Scene Tabs settings change
Updating "Display Close Button" setting (interface/scene_tabs/display_close_button) in Editor Settings changes the size of scene tabs, but the add button at the end of the tabs was not being moved until the next update, causing gaps/overlaps between the controls. Adding call to _scene_tabs_resized() after getting the new settings to update the add button position. Fixes #91850
-rw-r--r--editor/gui/editor_scene_tabs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/gui/editor_scene_tabs.cpp b/editor/gui/editor_scene_tabs.cpp
index 94fac59b9b..b824a90170 100644
--- a/editor/gui/editor_scene_tabs.cpp
+++ b/editor/gui/editor_scene_tabs.cpp
@@ -63,6 +63,7 @@ void EditorSceneTabs::_notification(int p_what) {
if (EditorSettings::get_singleton()->check_changed_settings_in_group("interface/scene_tabs")) {
scene_tabs->set_tab_close_display_policy((TabBar::CloseButtonDisplayPolicy)EDITOR_GET("interface/scene_tabs/display_close_button").operator int());
scene_tabs->set_max_tab_width(int(EDITOR_GET("interface/scene_tabs/maximum_width")) * EDSCALE);
+ _scene_tabs_resized();
}
} break;
}