Change remaining MessageDialogs to our version

Contributes to issue CURA-8687.
This commit is contained in:
Ghostkeeper 2022-02-04 15:49:06 +01:00
parent a03988d146
commit 2606a3b847
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
7 changed files with 41 additions and 55 deletions

View file

@ -1,4 +1,4 @@
// Copyright (c) 2021 Ultimaker B.V.
// Copyright (c) 2022 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.7
@ -61,15 +61,15 @@ Item
onYes: UM.OutputDeviceManager.requestWriteToDevice("local_file", PrintInformation.jobName, args)
}
MessageDialog
UM.MessageDialog
{
id: newProjectDialog
modality: Qt.ApplicationModal
anchors.centerIn: base
title: catalog.i18nc("@title:window", "New project")
text: catalog.i18nc("@info:question", "Are you sure you want to start a new project? This will clear the build plate and any unsaved settings.")
standardButtons: StandardButton.Yes | StandardButton.No
icon: StandardIcon.Question
onYes:
standardButtons: Dialog.Yes | Dialog.No
onAccepted:
{
CuraApplication.resetWorkspace()
Cura.Actions.resetProfile.trigger()