summaryrefslogtreecommitdiffstats
path: root/editor/editor_plugin_settings.cpp
diff options
context:
space:
mode:
authorMicky <micheledevita2@gmail.com>2024-02-25 17:05:12 +0100
committerMicky <micheledevita2@gmail.com>2024-02-25 18:54:27 +0100
commit4d6bf44ca87e002a022d5e8242ae70fec2d7462b (patch)
treef947e3717580f2007912f6e162c3a81c7ccf4dec /editor/editor_plugin_settings.cpp
parent81f3d43cc1ba01136795fb2059bbaa55bc514a16 (diff)
downloadredot-engine-4d6bf44ca87e002a022d5e8242ae70fec2d7462b.tar.gz
Fix toggling a plugin makes its name black
Diffstat (limited to 'editor/editor_plugin_settings.cpp')
-rw-r--r--editor/editor_plugin_settings.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/editor_plugin_settings.cpp b/editor/editor_plugin_settings.cpp
index 7d0024b1da..2920cf19c0 100644
--- a/editor/editor_plugin_settings.cpp
+++ b/editor/editor_plugin_settings.cpp
@@ -143,7 +143,11 @@ void EditorPluginSettings::_plugin_activity_changed() {
ti->set_checked(COLUMN_STATUS, is_enabled);
updating = false;
}
- ti->set_custom_color(COLUMN_NAME, is_enabled ? Color() : get_theme_color(SNAME("font_disabled_color"), EditorStringName(Editor)));
+ if (is_enabled) {
+ ti->clear_custom_color(COLUMN_NAME);
+ } else {
+ ti->set_custom_color(COLUMN_NAME, get_theme_color(SNAME("font_disabled_color"), EditorStringName(Editor)));
+ }
}
void EditorPluginSettings::_create_clicked() {