Skip to content

Commit

Permalink
Merge pull request #88817 from Mickeon/plugin-list-black
Browse files Browse the repository at this point in the history
Fix toggling a plugin makes its name black
  • Loading branch information
akien-mga committed Feb 27, 2024
2 parents cfe344f + 4d6bf44 commit 9dceb62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/editor_plugin_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9dceb62

Please sign in to comment.