MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / removeRepository

Method removeRepository

app/src/Misc/ExtensionManager.cpp:456–465  ·  view source on GitHub ↗

* @brief Removes a repository by index and persists the list. */

Source from the content-addressed store, hash-verified

454 * @brief Removes a repository by index and persists the list.
455 */
456void 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.

Callers

nothing calls this directly

Calls 1

countMethod · 0.45

Tested by

no test coverage detected