mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06:00
Switching to monitor tab now shows the correct sidebar again
CURA-3964
This commit is contained in:
parent
7e07482dec
commit
680cceb6f5
2 changed files with 10 additions and 12 deletions
|
@ -19,6 +19,16 @@ UM.MainWindow
|
|||
title: catalog.i18nc("@title:window","Cura");
|
||||
viewportRect: Qt.rect(0, 0, (base.width - sidebar.width) / base.width, 1.0)
|
||||
property bool monitoringPrint: false
|
||||
|
||||
Connections
|
||||
{
|
||||
target: Printer
|
||||
onShowPrintMonitor:
|
||||
{
|
||||
monitoringPrint = show;
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
CuraApplication.setMinimumWindowSize(UM.Theme.getSize("window_minimum_size"))
|
||||
|
@ -391,7 +401,6 @@ UM.MainWindow
|
|||
right: parent.right;
|
||||
}
|
||||
z: 1
|
||||
onMonitoringPrintChanged: base.monitoringPrint = monitoringPrint
|
||||
width: UM.Theme.getSize("sidebar").width;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,18 +15,7 @@ Rectangle
|
|||
id: base;
|
||||
|
||||
property int currentModeIndex;
|
||||
property bool monitoringPrint: false; // When adding more "tabs", one want to replace this bool with a ListModel
|
||||
property bool hideSettings: PrintInformation.preSliced
|
||||
Connections
|
||||
{
|
||||
target: Printer
|
||||
onShowPrintMonitor:
|
||||
{
|
||||
base.monitoringPrint = show;
|
||||
showSettings.checked = !show;
|
||||
showMonitor.checked = show;
|
||||
}
|
||||
}
|
||||
|
||||
// Is there an output device for this printer?
|
||||
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue