From c3f05b7f2feb680dc62c953ed87f945bfb615fe0 Mon Sep 17 00:00:00 2001 From: ATMDA Date: Fri, 14 Nov 2025 14:12:45 -0500 Subject: controlcenter: minor adjustments of accordion menu --- modules/controlcenter/audio/AudioPane.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/controlcenter/audio/AudioPane.qml b/modules/controlcenter/audio/AudioPane.qml index 616d479..732bb89 100644 --- a/modules/controlcenter/audio/AudioPane.qml +++ b/modules/controlcenter/audio/AudioPane.qml @@ -62,6 +62,13 @@ RowLayout { title: qsTr("Output devices") expanded: true + onToggleRequested: { + if (!expanded) { + // Opening output devices, close input devices + inputDevicesSection.expanded = false; + } + } + ColumnLayout { Layout.fillWidth: true spacing: Appearance.spacing.small @@ -142,6 +149,13 @@ RowLayout { title: qsTr("Input devices") expanded: true + onToggleRequested: { + if (!expanded) { + // Opening input devices, close output devices + outputDevicesSection.expanded = false; + } + } + ColumnLayout { Layout.fillWidth: true spacing: Appearance.spacing.small -- cgit v1.2.3-freya