mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Allow machine actions to reference the dialog they are shown in
This way they can respond to the onAccepted and onRejected actions of the dialog Contributes to CURA-2019
This commit is contained in:
parent
dc6482853a
commit
a9ed562a58
@ -3,6 +3,10 @@ import QtQuick 2.2
|
||||
Item
|
||||
{
|
||||
id: contentItem
|
||||
|
||||
// Point to the dialog containing the displayItem
|
||||
property var dialog
|
||||
|
||||
// Connect the finished property change to completed signal.
|
||||
property var finished: manager.finished
|
||||
onFinishedChanged: if(manager.finished) {completed()}
|
||||
|
@ -106,6 +106,7 @@ UM.ManagementPage
|
||||
{
|
||||
contents = content;
|
||||
content.onCompleted.connect(hide)
|
||||
content.dialog = actionDialog
|
||||
}
|
||||
rightButtons: Button
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user