fix(ui): correct key visualizer QML syntax
This commit is contained in:
+1
-1
@@ -472,7 +472,7 @@ Item {
|
|||||||
if (!root.paused) {
|
if (!root.paused) {
|
||||||
try {
|
try {
|
||||||
var parsed = JSON.parse(stateFile.text())
|
var parsed = JSON.parse(stateFile.text())
|
||||||
if parsed && Array.isArray(parsed.keys) {
|
if (parsed && Array.isArray(parsed.keys)) {
|
||||||
var age = Math.floor(Date.now() / 1000) - (parsed.t || 0)
|
var age = Math.floor(Date.now() / 1000) - (parsed.t || 0)
|
||||||
if (age <= Math.ceil(root.maxStateAgeMs / 1000)) next = parsed.keys
|
if (age <= Math.ceil(root.maxStateAgeMs / 1000)) next = parsed.keys
|
||||||
if ((parsed.t || 0) > 0) root.lastStateT = parsed.t
|
if ((parsed.t || 0) > 0) root.lastStateT = parsed.t
|
||||||
|
|||||||
Reference in New Issue
Block a user