This commit is contained in:
TheUnrealDragon 2026-04-13 19:34:36 +05:30
commit f59704545b

View file

@ -578,6 +578,20 @@ Window {
color: root.accent_color
font.pixelSize: root.font_normal_text_size
}
Text {
id: last_updated_text
property string last_updated: ""
text: "Last Updated On Server On: " + last_updated
anchors {
top: info_percent_text.bottom
topMargin: 10
horizontalCenter: parent.horizontalCenter
}
horizontalAlignment: Text.AlignHCenter
color: root.accent_color
font.pixelSize: root.font_normal_text_size
visible: config.mode === "http" ? true : false
}
Text {
id: error_text
@ -585,7 +599,7 @@ Window {
text: "Error: " + error_string
visible: error_string === "" ? false : true;
anchors {
top: info_percent_text.bottom
top: last_updated_text.bottom
topMargin: 10
horizontalCenter: parent.horizontalCenter
}
@ -644,6 +658,11 @@ Window {
error_text.error_string = err;
}
onLastUpdatedChanged: (update) => {
console.log("QML Last Updated: ", update);
last_updated_text.last_updated = update;
}
onDistanceChanged: {
console.log("Distance changed");
root.distance = listener.distance;