Skip to content

Commit

Permalink
datamonitor: tool open with menus open
Browse files Browse the repository at this point in the history
Signed-off-by: Ionut Muthi <[email protected]>
  • Loading branch information
IonutMuthi committed Apr 25, 2024
1 parent a70ffa8 commit a2bb01b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion plugins/datamonitorPlugin/src/datamonitorplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ void DataMonitorPlugin::addNewTool()

Q_EMIT toolListChanged();
m_toolList.last()->setTool(datamonitorTool);
requestTool(tool_name);
if(m_toolList.length() > 1) {
requestTool(tool_name);
}

i++;
}
Expand Down
5 changes: 2 additions & 3 deletions plugins/datamonitorPlugin/src/datamonitortool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ DatamonitorTool::DatamonitorTool(DataAcquisitionManager *dataAcquisitionManager,
tool->bottomContainer()->setVisible(true);
tool->topContainerMenuControl()->setVisible(false);

tool->openLeftContainerHelper(false);
tool->openRightContainerHelper(false);

lay->addWidget(tool);

settingsButton = new GearBtn(this);
settingsButton->setChecked(true);
infoBtn = new InfoBtn(this);
printBtn = new PrintBtn(this);
runBtn = new RunBtn(this);
Expand All @@ -57,6 +55,7 @@ DatamonitorTool::DatamonitorTool(DataAcquisitionManager *dataAcquisitionManager,
monitorsButton->setDoubleClickToOpenMenu(false);
monitorsButton->checkBox()->setVisible(false);
monitorsButton->button()->setVisible(false);
monitorsButton->setChecked(true);

tool->addWidgetToBottomContainerHelper(monitorsButton, TTA_LEFT);

Expand Down

0 comments on commit a2bb01b

Please sign in to comment.