diff --git a/src/qml/main.qml b/src/qml/main.qml index c8f2bee..71a0dd5 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -128,7 +128,14 @@ Window { MpvObject { id: renderer anchors.fill: parent - Component.onCompleted: { + + FontLoader { + id: notoFont + source: "fonts/NotoSans.ttf" + } + Component.onCompleted: { startPlayer() } + + function startPlayer() { var args = Qt.application.arguments var len = Qt.application.arguments.length var argNo = 1 @@ -157,11 +164,6 @@ Window { } } - FontLoader { - id: notoFont - source: "fonts/NotoSans.ttf" - } - function createTimestamp(d) { d = Number(d) var h = Math.floor(d / 3600)