Fix: WallpaperSelector widget panel positioning

When clicking the Wallpaper Selector button in the bar, it did not
respect the users position choice. For example if set to bottom right,
it would still follow bar position.
This commit is contained in:
onelocked
2025-11-11 19:29:29 +00:00
parent 8aa4254d57
commit acc5b2cd27
+8 -1
View File
@@ -20,5 +20,12 @@ NIconButton {
colorFg: Color.mOnSurface
colorBorder: Color.transparent
colorBorderHover: Color.transparent
onClicked: PanelService.getPanel("wallpaperPanel", screen)?.toggle(this)
onClicked: {
var wallpaperPanel = PanelService.getPanel("wallpaperPanel", screen)
if (Settings.data.wallpaper.panelPosition === "follow_bar") {
wallpaperPanel?.toggle(this)
} else {
wallpaperPanel?.toggle()
}
}
}