Skip to content
Snippets Groups Projects

hide 1D canvas when there are no data (#999)

Merged Wuttke, Joachim requested to merge j.1 into main
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
@@ -13,7 +13,9 @@
// ************************************************************************************************
#include "GUI/View/Frame/Plot1DFrame.h"
#include "GUI/Model/File/DatafilesSet.h"
#include "GUI/Model/Project/DataSource.h"
#include "GUI/Model/Project/ProjectDocument.h"
#include "GUI/View/Canvas/SpecularDataCanvas.h"
#include "GUI/View/Setup/AxisPanel.h"
#include "GUI/View/Setup/Data1DToolbar.h"
@@ -65,4 +67,7 @@ Plot1DFrame::Plot1DFrame(std::unique_ptr<DataSource>&& data_source)
connect(toolbar->actions()->reset_view, &QAction::triggered, m_specular_canvas,
&SpecularDataCanvas::onResetView);
connect(gDoc->datafiles(), &DatafilesSet::setChanged,
[this] { setVisible(dataSource()->currentData1DItem()); });
}
Loading