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

Method setTerminalEnabled

app/src/UI/Dashboard.cpp:1190–1200  ·  view source on GitHub ↗

* @brief Shows or hides the terminal tool window. The widget itself is always registered; * the flag only drives external-window visibility, so no rebuild occurs. */

Source from the content-addressed store, hash-verified

1188 * the flag only drives external-window visibility, so no rebuild occurs.
1189 */
1190void UI::Dashboard::setTerminalEnabled(const bool enabled)
1191{
1192 if (m_terminalEnabled == enabled)
1193 return;
1194
1195 m_terminalEnabled = enabled;
1196 if (m_persistSettings)
1197 m_settings.setValue("Dashboard/TerminalEnabled", m_terminalEnabled);
1198
1199 Q_EMIT terminalEnabledChanged();
1200}
1201
1202/**
1203 * @brief Shows or hides the notification log tool window (Pro-only widget).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected