Commit 1d1aedb1 authored by Leander Schulten's avatar Leander Schulten
Browse files

UI: Made error dialog wider and remove the text only when the dialog is...

UI: Made error dialog wider and remove the text only when the dialog is hidden, otherwise you see how the dialoge change its size while he is disappearing
parent 93e7f124
......@@ -277,14 +277,15 @@ ApplicationWindow {
modal: true
title: "Error"
standardButtons: Dialog.Ok
width: 300
width: 600
y: 50
x: (root.width-width)/2;
contentItem: Text{
text: ErrorNotifier.errorMessage
wrapMode: "WrapAtWordBoundaryOrAnywhere"
}
onAccepted: ErrorNotifier.errorMessage = "";
onClosed: if(result === Dialog.Accepted) ErrorNotifier.errorMessage = "";
visible: ErrorNotifier.errorMessage.length !== 0
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment