[UI] Fix timestamp and subtitle menu.
This commit is contained in:
parent
28940359e3
commit
8cd313b47c
|
@ -40,7 +40,7 @@ ApplicationWindow {
|
||||||
var track = newTracks[i]
|
var track = newTracks[i]
|
||||||
var trackID = track["id"]
|
var trackID = track["id"]
|
||||||
var trackType = track["type"]
|
var trackType = track["type"]
|
||||||
var trackLang = LanguageCodes.localeCodeToEnglish(track["lang"])
|
var trackLang = LanguageCodes.localeCodeToEnglish(String(track["lang"]))
|
||||||
var trackTitle = track["title"]
|
var trackTitle = track["title"]
|
||||||
if (trackType == "sub") {
|
if (trackType == "sub") {
|
||||||
subModel.append({
|
subModel.append({
|
||||||
|
@ -164,7 +164,7 @@ ApplicationWindow {
|
||||||
var s = Math.floor(d % 3600 % 60)
|
var s = Math.floor(d % 3600 % 60)
|
||||||
|
|
||||||
var hour = h > 0 ? h + ":" : ""
|
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
|
var second = s < 10 ? "0" + s : s
|
||||||
return hour + minute + second
|
return hour + minute + second
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue