Hide debug plugins IO (#767)

This commit is contained in:
xarkes 2018-10-05 18:42:54 +02:00 committed by GitHub
parent 005fd53193
commit a98354f402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -329,6 +329,10 @@ void NewFileDialog::fillIOPluginsList()
int index = 1;
QList<RIOPluginDescription> ioPlugins = Core()->getRIOPluginDescriptions();
for (RIOPluginDescription plugin : ioPlugins) {
// Hide debug plugins
if (plugin.permissions.contains('d')) {
continue;
}
ui->ioPlugin->addItem(plugin.name);
ui->ioPlugin->setItemData(index, plugin.description, Qt::ToolTipRole);
index++;