Skip to content

Commit

Permalink
[foilpics] Create TransferMethodsModel on demand
Browse files Browse the repository at this point in the history
It's not needed at all when new out-of-process sharing API is used.

If nothing else, that improves application startup time (although may
make sharing a bit slower because then it's always sailfish-share who
has to start transfer-engine).
monich committed Oct 24, 2021
1 parent 8d3b5f3 commit d0f4989
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions qml/GalleryFullscreenPage.qml
Original file line number Diff line number Diff line change
@@ -32,6 +32,12 @@ Page {
source: currentImageItem ? currentImageItem.url : ""
model: TransferMethodsModel

Binding {
target: TransferMethodsModel
property: "filter"
value: "image/*"
}

//: Share list item
//% "Add account"
addAccountText: qsTrId("foilpics-share_method_list-add_account")
6 changes: 0 additions & 6 deletions qml/main.qml
Original file line number Diff line number Diff line change
@@ -20,12 +20,6 @@ ApplicationWindow {
id: appHints
}

Binding {
target: TransferMethodsModel
property: "filter"
value: "image/*"
}

Timer {
id: lockTimer

0 comments on commit d0f4989

Please sign in to comment.