mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Fix remaining references to NetworkCamera and OutputDevice.activeCamera
This commit is contained in:
parent
736bf040a8
commit
e0d6bac37d
7 changed files with 23 additions and 28 deletions
|
@ -31,10 +31,10 @@ Rectangle {
|
|||
anchors.fill: parent;
|
||||
hoverEnabled: true;
|
||||
onClicked: {
|
||||
if (OutputDevice.activeCamera !== null) {
|
||||
OutputDevice.setActiveCamera(null)
|
||||
if (OutputDevice.activeCameraUrl !== null) {
|
||||
OutputDevice.setActiveCameraUrl(null)
|
||||
} else {
|
||||
OutputDevice.setActiveCamera(modelData.camera);
|
||||
OutputDevice.setActiveCameraUrl(modelData.cameraUrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ Component {
|
|||
height: maximumHeight;
|
||||
onVisibleChanged: {
|
||||
if (monitorFrame != null && !monitorFrame.visible) {
|
||||
OutputDevice.setActiveCamera(null);
|
||||
OutputDevice.setActiveCameraUrl(null);
|
||||
}
|
||||
}
|
||||
width: maximumWidth;
|
||||
|
@ -125,8 +125,8 @@ Component {
|
|||
|
||||
PrinterVideoStream {
|
||||
anchors.fill: parent;
|
||||
camera: OutputDevice.activeCamera;
|
||||
visible: OutputDevice.activeCamera != null;
|
||||
cameraUrl: OutputDevice.activeCameraUrl;
|
||||
visible: OutputDevice.activeCameraUrl != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ import UM 1.3 as UM
|
|||
import Cura 1.0 as Cura
|
||||
|
||||
Item {
|
||||
property var camera: null;
|
||||
property var cameraUrl: null;
|
||||
|
||||
Rectangle {
|
||||
anchors.fill:parent;
|
||||
|
@ -18,7 +18,7 @@ Item {
|
|||
|
||||
MouseArea {
|
||||
anchors.fill: parent;
|
||||
onClicked: OutputDevice.setActiveCamera(null);
|
||||
onClicked: OutputDevice.setActiveCameraUrl(null);
|
||||
z: 0;
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ Item {
|
|||
MouseArea {
|
||||
anchors.fill: cameraImage;
|
||||
onClicked: {
|
||||
OutputDevice.setActiveCamera(null);
|
||||
OutputDevice.setActiveCameraUrl(null);
|
||||
}
|
||||
z: 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue