Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma PulseAudio Applet
Commits
22371970
Commit
22371970
authored
Oct 31, 2020
by
Nicolas Fella
Browse files
[kcm] Move inactive devices button to footer
Instead of having it somewhere in the list.
parent
befc031e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/kcm/package/contents/ui/main.qml
View file @
22371970
...
...
@@ -114,17 +114,6 @@ ScrollViewKCM {
}
}
Button
{
id
:
inactiveDevicesButton
Layout.alignment
:
Qt
.
AlignHCenter
checkable
:
true
text
:
i18nd
(
"
kcm_pulseaudio
"
,
"
Show Inactive Devices
"
)
icon.name
:
"
view-visible
"
// Only show if there actually are any inactive devices
visible
:
(
paSourceModel
.
count
!=
paSourceFilterModel
.
count
)
||
(
paSinkModel
.
count
!=
paSinkFilterModel
.
count
)
}
Kirigami.ListSectionHeader
{
Layout.fillWidth
:
true
visible
:
eventStreamView
.
count
||
sinkInputView
.
count
...
...
@@ -195,6 +184,17 @@ ScrollViewKCM {
}
footer
:
RowLayout
{
Button
{
id
:
inactiveDevicesButton
checkable
:
true
text
:
i18nd
(
"
kcm_pulseaudio
"
,
"
Show Inactive Devices
"
)
icon.name
:
"
view-visible
"
// Only show if there actually are any inactive devices
visible
:
(
paSourceModel
.
count
!=
paSourceFilterModel
.
count
)
||
(
paSinkModel
.
count
!=
paSinkFilterModel
.
count
)
}
Button
{
text
:
i18n
(
"
Configure...
"
)
icon.name
:
"
configure
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment