mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Replaced all NWidgets callback by proper signals
This commit is contained in:
+2
-2
@@ -109,7 +109,7 @@ Variants {
|
||||
sizeMultiplier: 0.8
|
||||
showBorder: false
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
demoPanel.isLoaded = !demoPanel.isLoaded
|
||||
}
|
||||
}
|
||||
@@ -121,7 +121,7 @@ Variants {
|
||||
sizeMultiplier: 0.8
|
||||
showBorder: false
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
// Map this button's center to the screen and open the side panel below it
|
||||
const localCenterX = width / 2
|
||||
const localCenterY = height / 2
|
||||
|
||||
@@ -12,15 +12,15 @@ NClock {
|
||||
target: root
|
||||
}
|
||||
|
||||
onEntered: function () {
|
||||
onEntered: {
|
||||
if (!calendar.isLoaded) {
|
||||
tooltip.show()
|
||||
}
|
||||
}
|
||||
onExited: function () {
|
||||
onExited: {
|
||||
tooltip.hide()
|
||||
}
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
tooltip.hide()
|
||||
calendar.isLoaded = !calendar.isLoaded
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ Item {
|
||||
Audio.volumeDecrement()
|
||||
}
|
||||
}
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
audioDeviceSelector.isLoaded = !audioDeviceSelector.isLoaded
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ NIconButton {
|
||||
return connected ? network.signalIcon(parent.currentSignal) : "wifi_off"
|
||||
}
|
||||
tooltipText: "WiFi Networks"
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
if (!wifiMenuLoader.active) {
|
||||
wifiMenuLoader.isLoaded = true
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ NLoader {
|
||||
NIconButton {
|
||||
icon: "refresh"
|
||||
sizeMultiplier: 0.8
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
network.refreshNetworks()
|
||||
}
|
||||
}
|
||||
@@ -86,7 +86,7 @@ NLoader {
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
sizeMultiplier: 0.8
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
wifiPanel.visible = false
|
||||
network.onMenuClosed()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user