switch to correct config page in !advanced change

pull/1/head
Michail Vourlakos 8 years ago
parent 4037143902
commit 3fd5b3baf5

@ -163,6 +163,18 @@ PlasmaCore.FrameSvgItem {
if(pressed) if(pressed)
plasmoid.configuration.advanced = !checked; plasmoid.configuration.advanced = !checked;
} }
onCheckedChanged: {
if (!checked && tabGroup.currentTab === tweaksPage) {
if (tasksTabBtn.visible) {
tabGroup.currentTab = tasksPage;
tabBar.currentTab = tasksTabBtn;
} else {
tabGroup.currentTab = appearancePage;
tabBar.currentTab = appearanceTabBtn;
}
}
}
} }
} }
} }
@ -173,14 +185,17 @@ PlasmaCore.FrameSvgItem {
Layout.maximumWidth: maxWidth Layout.maximumWidth: maxWidth
PlasmaComponents.TabButton { PlasmaComponents.TabButton {
id: behaviorTabBtn
text: i18n("Behavior") text: i18n("Behavior")
tab: behaviorPage tab: behaviorPage
} }
PlasmaComponents.TabButton { PlasmaComponents.TabButton {
id: appearanceTabBtn
text: i18n("Appearance") text: i18n("Appearance")
tab: appearancePage tab: appearancePage
} }
PlasmaComponents.TabButton { PlasmaComponents.TabButton {
id: tasksTabBtn
text: i18n("Tasks") text: i18n("Tasks")
tab: tasksPage tab: tasksPage

Loading…
Cancel
Save