mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 05:52:41 +00:00
15 lines
426 B
QML
15 lines
426 B
QML
|
import QtQuick 2.13
|
||
|
|
||
|
Timer {
|
||
|
id: timer
|
||
|
function setTimeout(cb, delayTime) {
|
||
|
timer.interval = delayTime;
|
||
|
timer.repeat = false;
|
||
|
timer.triggered.connect(cb);
|
||
|
timer.triggered.connect(function release () {
|
||
|
timer.triggered.disconnect(cb); // This is important
|
||
|
timer.triggered.disconnect(release); // This is important as well
|
||
|
});
|
||
|
timer.start();
|
||
|
}
|
||
|
}
|