Hide uninstall button for plugins that are not installed
This commit is contained in:
@@ -285,9 +285,9 @@ private:
|
||||
&ManagerDialog::onInstallClicked);
|
||||
m_table->setCellWidget(i, 3, btn);
|
||||
|
||||
if (pi->installed) {
|
||||
auto *delBtn = new QPushButton(
|
||||
de ? "Deinstallieren" : "Uninstall");
|
||||
delBtn->setEnabled(pi->installed);
|
||||
delBtn->setProperty("slug", QString(pi->slug));
|
||||
delBtn->setStyleSheet(
|
||||
"QPushButton { color: #cc3333; }");
|
||||
@@ -296,6 +296,7 @@ private:
|
||||
m_table->setCellWidget(i, 4, delBtn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void onInstallClicked()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user