瀏覽代碼

Merge pull request #88817 from Mickeon/plugin-list-black

Fix toggling a plugin makes its name black
Rémi Verschelde 1 年之前
父節點
當前提交
9dceb626d6
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      editor/editor_plugin_settings.cpp

+ 5 - 1
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() {