[sailfish] Don't catchup but mark all loaded as read when in a feed
It's still possible to catchup by using the context menu of the feed.
This commit is contained in:
parent
00bfa9cc35
commit
891b0ee334
2 changed files with 11 additions and 7 deletions
|
|
@ -186,6 +186,10 @@ ListModel {
|
|||
})
|
||||
}
|
||||
|
||||
function markAllLoadedAsRead() {
|
||||
markAllAboveAsRead(root.count)
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle unread/read of currently selected item.
|
||||
* @param {function} A callback function with parameters boolean (indicating
|
||||
|
|
|
|||
|
|
@ -70,16 +70,16 @@ Page {
|
|||
}
|
||||
}
|
||||
MenuItem {
|
||||
text: qsTr('Mark all read')
|
||||
onClicked: markAllRead()
|
||||
text: qsTr('Mark all loaded read')
|
||||
onClicked: markAllLoadedAsRead()
|
||||
}
|
||||
}
|
||||
|
||||
PushUpMenu {
|
||||
id: pushmenu
|
||||
MenuItem {
|
||||
text: qsTr('Mark all read')
|
||||
onClicked: markAllRead()
|
||||
text: qsTr('Mark all loaded read')
|
||||
onClicked: markAllLoadedAsRead()
|
||||
}
|
||||
ToggleShowAllItem {
|
||||
onUpdateView: {
|
||||
|
|
@ -155,10 +155,10 @@ Page {
|
|||
}
|
||||
}
|
||||
|
||||
function markAllRead() {
|
||||
remorse.execute(qsTr("Marking all read"),
|
||||
function markAllLoadedAsRead() {
|
||||
remorse.execute(qsTr("Marking all loaded as read"),
|
||||
function() {
|
||||
feedItemModel.catchUp()
|
||||
feedItemModel.markAllLoadedAsRead()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue