Skip to content
GitLab
Menu
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
912beaaa
Commit
912beaaa
authored
Jan 23, 2021
by
Kai Uwe Broulik
🍇
Browse files
Remember last used tab
parent
c6c72109
Changes
2
Hide whitespace changes
Inline
Side-by-side
applet/contents/config/main.xml
View file @
912beaaa
...
...
@@ -6,6 +6,10 @@
<kcfgfile
name=
""
/>
<group
name=
"General"
>
<entry
name=
"currentTab"
type=
"String"
>
<label>
Currently shown tab (devices, streams)
</label>
<default>
devices
</default>
</entry>
<entry
name=
"raiseMaximumVolume"
type=
"Bool"
>
<default>
false
</default>
</entry>
...
...
applet/contents/ui/main.qml
View file @
912beaaa
...
...
@@ -445,6 +445,26 @@ Item {
activeFocusOnTab
:
true
tabPosition
:
Qt
.
TopEdge
currentTab
:
{
switch
(
plasmoid
.
configuration
.
currentTab
)
{
case
"
devices
"
:
return
devicesTab
;
case
"
streams
"
:
return
streamsTab
;
}
}
onCurrentTabChanged
:
{
switch
(
currentTab
)
{
case
devicesTab
:
plasmoid
.
configuration
.
currentTab
=
"
devices
"
;
break
;
case
streamsTab
:
plasmoid
.
configuration
.
currentTab
=
"
streams
"
;
break
;
}
}
PlasmaComponents.TabButton
{
id
:
devicesTab
text
:
i18n
(
"
Devices
"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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