settings: hide include setup banners on compositors without includes (#3699)

On compositors with no include support (sway, labwc, ...) the displays page
showed a setup banner whose fix button can never succeed.

Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Kadir
2026-10-05 00:49:54 -04:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 131906d6a5
commit dfa19b9237
2 changed files with 2 additions and 2 deletions
@@ -457,7 +457,7 @@ Item {
readonly property bool identifyConfigured: {
if (!DisplayConfigState.hasOutputBackend || DisplayConfigState.readOnly)
return false;
if (!["niri", "hyprland", "mango"].includes(CompositorService.compositor))
if (!DisplayConfigState.include.compositorSupported)
return true;
return DisplayConfigState.includeStatus.included;
}
@@ -17,7 +17,7 @@ StyledRect {
color: Theme.withAlpha(Theme.primary, 0.15)
border.color: Theme.withAlpha(Theme.primary, 0.3)
border.width: Theme.outlineWidth
visible: visibleCondition && (showLegacy || showSetup) && !include.checking
visible: visibleCondition && include.compositorSupported && (showLegacy || showSetup) && !include.checking
Row {
id: content