Indicate that system plugins cannot be removed by changing remove button text
This commit is contained in:
parent
17ad77f07a
commit
50f4bb5e5a
1 changed files with 6 additions and 0 deletions
|
|
@ -371,6 +371,12 @@ void Ui::OpenRGBPluginsPage::on_PluginsList_itemSelectionChanged()
|
|||
if(!entries[cur_row]->is_system)
|
||||
{
|
||||
ui->RemovePluginButton->setEnabled(!ui->PluginsList->selectedItems().empty());
|
||||
ui->RemovePluginButton->setText("Remove Plugin");
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->RemovePluginButton->setEnabled(false);
|
||||
ui->RemovePluginButton->setText("System Plugin - Cannot Remove");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue