mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Change camera URL to non-optional QUrl
Otherwise pyqt property will complain when it tries to convert a None to a QUrl.
This commit is contained in:
parent
0c1b3931db
commit
02681a5700
5 changed files with 23 additions and 30 deletions
|
|
@ -16,7 +16,7 @@ Component {
|
|||
height: maximumHeight;
|
||||
onVisibleChanged: {
|
||||
if (monitorFrame != null && !monitorFrame.visible) {
|
||||
OutputDevice.setActiveCameraUrl(null);
|
||||
OutputDevice.setActiveCameraUrl("");
|
||||
}
|
||||
}
|
||||
width: maximumWidth;
|
||||
|
|
@ -126,7 +126,7 @@ Component {
|
|||
PrinterVideoStream {
|
||||
anchors.fill: parent;
|
||||
cameraUrl: OutputDevice.activeCameraUrl;
|
||||
visible: OutputDevice.activeCameraUrl != null;
|
||||
visible: OutputDevice.activeCameraUrl != "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue