From 8cd313b47c66948784c229efa103f71b92fd13ee Mon Sep 17 00:00:00 2001 From: Kitteh Date: Mon, 5 Nov 2018 00:15:49 +0000 Subject: [PATCH] [UI] Fix timestamp and subtitle menu. --- src/qml/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/main.qml b/src/qml/main.qml index d774e02..8e674a2 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -40,7 +40,7 @@ ApplicationWindow { var track = newTracks[i] var trackID = track["id"] var trackType = track["type"] - var trackLang = LanguageCodes.localeCodeToEnglish(track["lang"]) + var trackLang = LanguageCodes.localeCodeToEnglish(String(track["lang"])) var trackTitle = track["title"] if (trackType == "sub") { subModel.append({ @@ -164,7 +164,7 @@ ApplicationWindow { var s = Math.floor(d % 3600 % 60) var hour = h > 0 ? h + ":" : "" - var minute = m + ":" + var minute = h < 1 ? m + ":" : (m < 10 ? "0" + m + ":" : m + ":") var second = s < 10 ? "0" + s : s return hour + minute + second }