Removed NLoader in favor of Loader, as it was not doing anything anymore
This commit is contained in:
parent
c6eb613e38
commit
caffbe45e0
10 changed files with 65 additions and 115 deletions
|
|
@ -70,7 +70,7 @@ Item {
|
|||
|
||||
onClicked: {
|
||||
settingsPanel.requestedTab = SettingsPanel.Tab.Brightness
|
||||
settingsPanel.isLoaded = true
|
||||
settingsPanel.open(screen)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,26 +14,5 @@ NIconButton {
|
|||
colorBorderHover: Color.transparent
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onClicked: {
|
||||
sidePanel.toggle(screen)
|
||||
// sidePanel.isLoaded = !sidePanel.isLoaded
|
||||
// Logger.log("SidePanelToggle", sidePanel.isLoaded)
|
||||
// // Map this button's center to the screen and open the side panel below it
|
||||
// const localCenterX = width / 2
|
||||
// const localCenterY = height / 2
|
||||
// const globalPoint = mapToItem(null, localCenterX, localCenterY)
|
||||
// if (sidePanel.isLoaded) {
|
||||
// // Call hide() instead of directly setting isLoaded to false
|
||||
// if (sidePanel.item && sidePanel.item.hide) {
|
||||
// sidePanel.item.hide()
|
||||
// } else {
|
||||
// sidePanel.isLoaded = false
|
||||
// }
|
||||
// } else if (sidePanel.openAt) {
|
||||
// sidePanel.openAt(globalPoint.x, screen)
|
||||
// } else {
|
||||
// // Fallback: toggle if API unavailable
|
||||
// sidePanel.isLoaded = true
|
||||
// }
|
||||
}
|
||||
onClicked: sidePanel.toggle(screen)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue