Commit 912beaaa authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Remember last used tab

parent c6c72109
......@@ -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>
......
......@@ -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")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment