Commit e84a0659 authored by Han Young's avatar Han Young Committed by Nate Graham
Browse files

remove excess pages before pushing new pages

bug: 460470


(cherry picked from commit 4fe72913)
parent 1f6b9710
Pipeline #248446 passed with stage
in 10 minutes and 21 seconds
......@@ -94,7 +94,7 @@ KCM.ScrollViewKCM {
}
function onSaveClicked() {
// return to first page on save action since all messages are here
while (kcm.depth !== 1) {
while (kcm.depth > 1) {
kcm.takeLast();
}
}
......@@ -125,6 +125,12 @@ KCM.ScrollViewKCM {
text: i18nc("@action:button for change the locale used", "Modify…")
icon.name: "edit-entry"
onClicked: {
// remove the excess pages before pushing new page
while (kcm.depth > 1) {
kcm.takeLast();
}
if (model.page === SettingType.Lang) {
languageSelectPage.active = true;
kcm.push(languageSelectPage.item);
......
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