Add plugin permissions and IO API (#5231)

This commit is contained in:
Mm2PL
2024-03-09 20:16:25 +01:00
committed by GitHub
parent 2361d30e4b
commit 658fceddaa
16 changed files with 889 additions and 19 deletions
+14
View File
@@ -161,6 +161,20 @@ void PluginsPage::rebuildContent()
}
pluginEntry->addRow("Commands",
new QLabel(commandsTxt, this->dataFrame_));
if (!plugin->meta.permissions.empty())
{
QString perms = "<ul>";
for (const auto &perm : plugin->meta.permissions)
{
perms += "<li>" + perm.toHtml() + "</li>";
}
perms += "</ul>";
auto *lbl =
new QLabel("Required permissions:" + perms, this->dataFrame_);
lbl->setTextFormat(Qt::RichText);
pluginEntry->addRow(lbl);
}
if (plugin->meta.isValid())
{