| 177 | } |
| 178 | |
| 179 | void EditorPluginSettings::_cell_button_pressed(Object *p_item, int p_column, int p_id, MouseButton p_button) { |
| 180 | if (p_button != MouseButton::LEFT) { |
| 181 | return; |
| 182 | } |
| 183 | TreeItem *item = Object::cast_to<TreeItem>(p_item); |
| 184 | if (!item) { |
| 185 | return; |
| 186 | } |
| 187 | if (p_id == BUTTON_PLUGIN_EDIT) { |
| 188 | if (p_column == COLUMN_EDIT) { |
| 189 | String dir = item->get_metadata(COLUMN_NAME); |
| 190 | plugin_config_dialog->config(dir); |
| 191 | plugin_config_dialog->popup_centered(); |
| 192 | } |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | Vector<String> EditorPluginSettings::_get_plugins(const String &p_dir) { |
| 197 | Ref<DirAccess> da = DirAccess::create(DirAccess::ACCESS_RESOURCES); |
nothing calls this directly
no test coverage detected