| 73 | } |
| 74 | |
| 75 | void PresetFragment::onRemoveClicked() |
| 76 | { |
| 77 | auto* select = ui->files->selectionModel(); |
| 78 | if (!select->hasSelection()) |
| 79 | { |
| 80 | return; |
| 81 | } |
| 82 | |
| 83 | auto indexes = select->selectedIndexes(); |
| 84 | PresetManager::instance().remove(PresetManager::instance().presetModel()->data(indexes.first(), Qt::UserRole).toString()); |
| 85 | |
| 86 | ui->load->setEnabled(false); |
| 87 | ui->remove->setEnabled(false); |
| 88 | } |
| 89 | |
| 90 | void PresetFragment::onLoadClicked() |
| 91 | { |
nothing calls this directly
no test coverage detected