mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user