mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-24 14:35:01 -04:00
Indicate that system plugins cannot be removed by changing remove button text
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user