Fix TrayMenu crash after display wake. Add checks if screen exists, else set scaling to 1.0
TrayMenu: Replace PopupPanel with NPanel (for better loading & to prevent QS crash) Overview, Background etc: add screen checks, if it doesnt exist set scaling to 1.0
This commit is contained in:
parent
714f6c058f
commit
51f1923e22
9 changed files with 119 additions and 137 deletions
|
|
@ -12,7 +12,7 @@ Variants {
|
|||
|
||||
required property ShellScreen modelData
|
||||
|
||||
active: Settings.isLoaded
|
||||
active: Settings.isLoaded && modelData
|
||||
|
||||
sourceComponent: PanelWindow {
|
||||
id: root
|
||||
|
|
@ -38,7 +38,7 @@ Variants {
|
|||
property real stripesAngle: 0
|
||||
|
||||
// External state management
|
||||
property string servicedWallpaper: WallpaperService.getWallpaper(modelData.name)
|
||||
property string servicedWallpaper: modelData ? WallpaperService.getWallpaper(modelData.name) : ""
|
||||
property string futureWallpaper: ""
|
||||
onServicedWallpaperChanged: {
|
||||
// Set wallpaper immediately on startup
|
||||
|
|
|
|||
|
|
@ -12,11 +12,13 @@ Variants {
|
|||
delegate: Loader {
|
||||
required property ShellScreen modelData
|
||||
|
||||
active: Settings.isLoaded && CompositorService.isNiri
|
||||
active: Settings.isLoaded && CompositorService.isNiri && modelData
|
||||
|
||||
sourceComponent: PanelWindow {
|
||||
Component.onCompleted: {
|
||||
Logger.log("Overview", "Loading Overview component for Niri on", modelData.name)
|
||||
if (modelData) {
|
||||
Logger.log("Overview", "Loading Overview component for Niri on", modelData.name)
|
||||
}
|
||||
}
|
||||
|
||||
color: Color.transparent
|
||||
|
|
@ -36,7 +38,7 @@ Variants {
|
|||
id: bgImage
|
||||
anchors.fill: parent
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
source: WallpaperService.getWallpaper(modelData.name)
|
||||
source: modelData ? WallpaperService.getWallpaper(modelData.name) : ""
|
||||
smooth: true
|
||||
mipmap: false
|
||||
cache: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue