* @brief Removes a repository by index and persists the list. */
| 454 | * @brief Removes a repository by index and persists the list. |
| 455 | */ |
| 456 | void Misc::ExtensionManager::removeRepository(int index) |
| 457 | { |
| 458 | if (index < 0 || index >= m_repositories.count()) |
| 459 | return; |
| 460 | |
| 461 | m_repositories.removeAt(index); |
| 462 | m_settings.setValue("ExtensionRepositories", m_repositories); |
| 463 | Q_EMIT repositoriesChanged(); |
| 464 | refreshRepositories(); |
| 465 | } |
| 466 | |
| 467 | /** |
| 468 | * @brief Resets the repository list and uninstalls all extensions. |