Possible fix for Hyprland workspaces

This commit is contained in:
Ly-sec 2025-07-27 14:30:48 +02:00
parent df1e6e6bbe
commit 3beea4f4a6
2 changed files with 4 additions and 2 deletions

View file

@ -188,7 +188,7 @@ Item {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
WorkspaceManager.switchToWorkspace(model.id);
WorkspaceManager.switchToWorkspace(model.idx);
}
z: 20
hoverEnabled: true

View file

@ -28,7 +28,9 @@ Singleton {
reload()
}
onLoaded: function() {
WallpaperManager.setCurrentWallpaper(settings.currentWallpaper, true);
Qt.callLater(function () {
WallpaperManager.setCurrentWallpaper(settings.currentWallpaper, true);
})
}
onLoadFailed: function(error) {
settingAdapter = {}