Sfoglia il codice sorgente

Added a simple timestamp to the GUI footer to make debugging easier

Cyamond 5 anni fa
parent
commit
6e8fdc22c9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      gui/src/FooterForm.ui.qml

+ 1 - 1
gui/src/FooterForm.ui.qml

@@ -11,7 +11,7 @@ Page {
     Connections {
         target: _qmlHandler
         onLog: {
-            footerLog.append(logText)
+            footerLog.append(new Date().toLocaleTimeString(Qt.locale("de_DE"), "[hh:mm:ss]\n") + logText)
             footerFlickable.contentY = footerLog.height - footerFlickable.height
         }