Commit b344012e authored by Julius Künzel's avatar Julius Künzel 💬
Browse files

Fix feed groups are not loaded to UI on app start

parent 97369919
Pipeline #201242 passed with stage
in 1 minute and 41 seconds
......@@ -42,7 +42,18 @@ Kirigami.GlobalDrawer {
id: feedGroups
iconName: "edit-group"
text: i18n("Feed Groups")
children: [configureGroupsAction]
Kirigami.Action {
id: configureGroupsAction
text: i18n("Configure Groups")
iconName: "settings-configure"
onTriggered: {
pageStack.clear()
pageStack.insertPage(0, root.feedsPage, {groupFilter: ""})
pageStack.layers.clear()
pageStack.layers.push(groupsList)
}
}
},
Kirigami.Action {
text: i18n("Settings")
......@@ -58,19 +69,6 @@ Kirigami.GlobalDrawer {
}
]
Kirigami.Action {
id: configureGroupsAction
text: i18n("Configure Groups")
iconName: "settings-configure"
onTriggered: {
pageStack.clear()
pageStack.insertPage(0, root.feedsPage, {groupFilter: ""})
pageStack.layers.clear()
pageStack.layers.push(groupsList)
}
}
Instantiator {
model: groupsModel
......@@ -89,8 +87,7 @@ Kirigami.GlobalDrawer {
}
onObjectRemoved: {
feedGroups.children = [];
feedGroups.children.push(configureGroupsAction);
feedGroups.children = [configureGroupsAction];
}
}
......
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