Fix supported display check for Plasma Wayland on Steam Deck, add logging of display names

This commit is contained in:
wheaney 2025-09-08 21:39:08 -07:00
parent f7daccb2f8
commit f2b0913a4e
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,7 @@ Item {
return displays.monitorsToPlacements(fovDetails, adjustedGeometries, effect.displaySpacing);
}
property bool targetScreenSupported: supportedModels.some(model => root.targetScreen.model.endsWith(model))
property bool targetScreenSupported: supportedModels.some(model => root.targetScreen.model.includes(model))
property bool imuResetState: effect.imuResetState
property bool isEnabled: effect.isEnabled
@ -132,6 +132,7 @@ Item {
}
function checkLoadedComponent() {
console.log(`Breezy - checking screen ${targetScreen.model}: ${targetScreenSupported} ${isEnabled} ${imuResetState}`);
const show3DView = targetScreenSupported && isEnabled && !imuResetState;
viewLoader.sourceComponent = show3DView ? view3DComponent : desktopViewComponent;
}