diff --git a/Modules/Settings/SettingsWindow.qml b/Modules/Settings/SettingsWindow.qml index b9f7caa..9227cb3 100644 --- a/Modules/Settings/SettingsWindow.qml +++ b/Modules/Settings/SettingsWindow.qml @@ -96,7 +96,7 @@ NLoader { Column { anchors.fill: parent anchors.margins: Style.marginSmall * scaling - spacing: 2 * scaling // Minimal spacing between tabs + spacing: 2 * scaling // Minimal spacing between tabs Repeater { id: sections @@ -106,7 +106,7 @@ NLoader { id: tabItem readonly property bool selected: index === settingsPanel.currentTabIndex width: parent.width - height: 32 * scaling // Back to original height + height: 32 * scaling // Back to original height radius: Style.radiusSmall * scaling color: selected ? Colors.accentPrimary : (tabItem.hovering ? Colors.highlight : "transparent") border.color: "transparent" @@ -212,4 +212,4 @@ NLoader { } } } -} \ No newline at end of file +} diff --git a/Services/Location.qml b/Services/Location.qml index 3e97c7b..341aefd 100644 --- a/Services/Location.qml +++ b/Services/Location.qml @@ -40,22 +40,19 @@ Singleton { } } - Timer { id: updateTimer interval: 60 * 1000 repeat: true onTriggered: { - updateWeather(); + updateWeather() } } // -------------------------------- - function init() { - // does nothing but ensure the singleton is created + function init() {// does nothing but ensure the singleton is created } - // -------------------------------- function updateWeather() { if ((data.weatherLastFetch === "") || (Time.timestamp >= data.weatherLastFetch + weatherUpdateFrequency)) { @@ -135,7 +132,7 @@ Singleton { xhr.send() } - // -------------------------------- + // -------------------------------- function errorCallback(message) { console.error(message) } diff --git a/Services/Time.qml b/Services/Time.qml index f277a5d..3d827ad 100644 --- a/Services/Time.qml +++ b/Services/Time.qml @@ -39,8 +39,8 @@ Singleton { } // Returns a Unix Timestamp (in seconds) - readonly property string timestamp: { - return Math.floor(Date.now() / 1000); + readonly property string timestamp: { + return Math.floor(Date.now() / 1000) } // Format an easy to read approximate duration ex: 4h32m