Do not require loaded view in PrevieStage to have a safeArea

CURA-6853
This commit is contained in:
Nino van Hooff 2019-10-23 17:25:05 +02:00
parent 3491900bf1
commit 8198762755

View File

@ -29,11 +29,10 @@ Item
source: UM.Controller.activeView != null && UM.Controller.activeView.mainComponent != null ? UM.Controller.activeView.mainComponent : "" source: UM.Controller.activeView != null && UM.Controller.activeView.mainComponent != null ? UM.Controller.activeView.mainComponent : ""
Binding onLoaded: {
{ if (previewMain.item.safeArea !== undefined){
target: previewMain.item previewMain.item.safeArea = Qt.binding(function() { return safeArea });
property: "safeArea" }
value:safeArea
} }
} }