| 59 | } |
| 60 | |
| 61 | bool PresetManager::remove(const QString &name) |
| 62 | { |
| 63 | auto path = AppConfig::instance().getPath("presets/") + name + ".conf"; |
| 64 | if (QFile::exists(path)) |
| 65 | { |
| 66 | QFile::remove(path); |
| 67 | this->_presetModel->rescan(); |
| 68 | return true; |
| 69 | } |
| 70 | return false; |
| 71 | } |
| 72 | |
| 73 | void PresetManager::save(const QString &name) |
| 74 | { |
no test coverage detected