quickshell: IpService: fetch instead of refresh
This commit is contained in:
@@ -7,6 +7,7 @@ pragma Singleton
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
// Compatibility colors for noctalia modules
|
||||
property color mPrimary: Colors.primary
|
||||
property color mOnPrimary: Colors.base
|
||||
property color mSecondary: Colors.primary
|
||||
|
||||
@@ -36,6 +36,7 @@ Singleton {
|
||||
readonly property string speedReset: ""
|
||||
readonly property string reset: ""
|
||||
readonly property string lines: ""
|
||||
// Tabler icons
|
||||
// Expose the font family name for easy access
|
||||
readonly property string fontFamily: currentFontLoader ? currentFontLoader.name : ""
|
||||
readonly property string defaultIcon: TablerIcons.defaultIcon
|
||||
|
||||
@@ -49,12 +49,9 @@ NPanel {
|
||||
}
|
||||
|
||||
// Combined blue banner with date/time and weather summary
|
||||
Rectangle {
|
||||
NBox {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: blueColumn.implicitHeight + Style.marginM * 2
|
||||
radius: Style.radiusL
|
||||
color: Color.mSurfaceVariant
|
||||
layer.enabled: true
|
||||
|
||||
ColumnLayout {
|
||||
id: blueColumn
|
||||
@@ -255,14 +252,6 @@ NPanel {
|
||||
|
||||
}
|
||||
|
||||
layer.effect: DropShadow {
|
||||
horizontalOffset: 6
|
||||
verticalOffset: 6
|
||||
radius: 8
|
||||
samples: 12
|
||||
color: Qt.rgba(0, 0, 0, 0.3)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// 6-day forecast (outside blue banner)
|
||||
|
||||
@@ -116,7 +116,7 @@ Singleton {
|
||||
repeat: false
|
||||
running: false
|
||||
onTriggered: {
|
||||
refresh();
|
||||
fetchIP();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,9 @@ Singleton {
|
||||
repeat: true
|
||||
running: true
|
||||
onTriggered: {
|
||||
fetchTimer.stop();
|
||||
fetchIP();
|
||||
fetchTimer.start();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user