slight delay for opening
This commit is contained in:
parent
4c2e802a7d
commit
6d118bdbeb
@ -64,7 +64,8 @@ Item {
|
|||||||
|
|
||||||
function open()
|
function open()
|
||||||
{
|
{
|
||||||
dialog.state = ""
|
status = DialogStatus.Opening
|
||||||
|
delayOpenTimer.restart()
|
||||||
}
|
}
|
||||||
|
|
||||||
function accept()
|
function accept()
|
||||||
@ -103,6 +104,12 @@ Item {
|
|||||||
close()
|
close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Timer {
|
||||||
|
id: delayOpenTimer
|
||||||
|
running: false
|
||||||
|
interval: 100
|
||||||
|
onTriggered: dialog.state = ""
|
||||||
|
}
|
||||||
|
|
||||||
PlasmaCore.FrameSvgItem {
|
PlasmaCore.FrameSvgItem {
|
||||||
id: dialog
|
id: dialog
|
||||||
|
Loading…
Reference in New Issue
Block a user