mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-21 18:54:01 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user