summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-09-09 16:52:32 +0200
committerGitHub <noreply@github.com>2022-09-09 16:52:32 +0200
commit24ce46e2a17558cfdfbfab8c8109b6630a19287f (patch)
tree17b36ea833b7f88f46c75fe44fa875e9b0ac1ed2 /editor/editor_node.cpp
parent82031fa231506ef036ccd06e740a7ca2ceca20d0 (diff)
parent817d4db21f183d4e1bdb5c1101f221aa3ed10da0 (diff)
downloadredot-engine-24ce46e2a17558cfdfbfab8c8109b6630a19287f.tar.gz
Merge pull request #64938 from YuriSizov/editor-scaled-icons
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 1bd7a8eae5..b00127f5b1 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -3377,6 +3377,8 @@ void EditorNode::add_editor_plugin(EditorPlugin *p_editor, bool p_config_changed
Ref<Texture2D> icon = p_editor->get_icon();
if (icon.is_valid()) {
tb->set_icon(icon);
+ // Make sure the control is updated if the icon is reimported.
+ icon->connect("changed", callable_mp((Control *)tb, &Control::update_minimum_size));
} else if (singleton->gui_base->has_theme_icon(p_editor->get_name(), SNAME("EditorIcons"))) {
tb->set_icon(singleton->gui_base->get_theme_icon(p_editor->get_name(), SNAME("EditorIcons")));
}