Indicate that system plugins cannot be removed by changing remove button text

This commit is contained in:
Adam Honse 2025-01-14 01:40:29 -06:00
parent 17ad77f07a
commit 50f4bb5e5a

View file

@ -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");
}
}