mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 04:35:53 +08:00
Do not require loaded view in PrevieStage to have a safeArea
CURA-6853
This commit is contained in:
parent
3491900bf1
commit
8198762755
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user