Skip to content

Commit 50f4bb5

Browse files
Indicate that system plugins cannot be removed by changing remove button text
1 parent 17ad77f commit 50f4bb5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

qt/OpenRGBPluginsPage/OpenRGBPluginsPage.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,12 @@ void Ui::OpenRGBPluginsPage::on_PluginsList_itemSelectionChanged()
371371
if(!entries[cur_row]->is_system)
372372
{
373373
ui->RemovePluginButton->setEnabled(!ui->PluginsList->selectedItems().empty());
374+
ui->RemovePluginButton->setText("Remove Plugin");
375+
}
376+
else
377+
{
378+
ui->RemovePluginButton->setEnabled(false);
379+
ui->RemovePluginButton->setText("System Plugin - Cannot Remove");
374380
}
375381
}
376382

0 commit comments

Comments
 (0)