void UiManager::onActiveTabChanged(const qReal::TabInfo &tab) { if (tab.type() == mCurrentTab) { return; } saveDocks(); mCurrentTab = tab.type(); reloadDocks(); toggleModeButtons(); }
void ActionsManager::onActiveTabChanged(const qReal::TabInfo &info) { updateEnabledActions(); const bool isDiagramTab = info.type() == qReal::TabInfo::TabType::editor; mRunAction.setEnabled(isDiagramTab); mStopRobotAction.setEnabled(isDiagramTab); }