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

Method onDashboardAvailableChanged

app/src/Misc/ExtensionManager.cpp:1745–1756  ·  view source on GitHub ↗

* @brief Reacts to dashboard availability changes. */

Source from the content-addressed store, hash-verified

1743 * @brief Reacts to dashboard availability changes.
1744 */
1745void Misc::ExtensionManager::onDashboardAvailableChanged()
1746{
1747 const bool available = UI::Dashboard::instance().available();
1748
1749 if (available && !m_dashboardWasAvailable)
1750 restoreRunningPlugins();
1751
1752 else if (!available && m_dashboardWasAvailable)
1753 stopAllPlugins();
1754
1755 m_dashboardWasAvailable = available;
1756}
1757
1758/**
1759 * @brief Handles plugin process termination.

Callers

nothing calls this directly

Calls 1

availableMethod · 0.80

Tested by

no test coverage detected