mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-10 07:25:37 -05:00
Close ControlCenter popout on Settings open. (#396)
This commit is contained in:
@@ -11,6 +11,7 @@ Rectangle {
|
|||||||
signal powerButtonClicked()
|
signal powerButtonClicked()
|
||||||
signal lockRequested()
|
signal lockRequested()
|
||||||
signal editModeToggled()
|
signal editModeToggled()
|
||||||
|
signal settingsButtonClicked()
|
||||||
|
|
||||||
implicitHeight: 70
|
implicitHeight: 70
|
||||||
radius: Theme.cornerRadius
|
radius: Theme.cornerRadius
|
||||||
@@ -96,6 +97,7 @@ Rectangle {
|
|||||||
iconColor: Theme.surfaceText
|
iconColor: Theme.surfaceText
|
||||||
backgroundColor: "transparent"
|
backgroundColor: "transparent"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
root.settingsButtonClicked()
|
||||||
settingsModal.show()
|
settingsModal.show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,6 +140,9 @@ DankPopout {
|
|||||||
root.close()
|
root.close()
|
||||||
root.lockRequested()
|
root.lockRequested()
|
||||||
}
|
}
|
||||||
|
onSettingsButtonClicked: {
|
||||||
|
root.close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DragDropGrid {
|
DragDropGrid {
|
||||||
|
|||||||
Reference in New Issue
Block a user