From d0f4989e256918bbfda59b906c82858fcb7088ed Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sun, 24 Oct 2021 18:24:57 +0300 Subject: [PATCH] [foilpics] Create TransferMethodsModel on demand 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). --- qml/GalleryFullscreenPage.qml | 6 ++++++ qml/main.qml | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qml/GalleryFullscreenPage.qml b/qml/GalleryFullscreenPage.qml index 11e0ede..06b8177 100644 --- a/qml/GalleryFullscreenPage.qml +++ b/qml/GalleryFullscreenPage.qml @@ -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") diff --git a/qml/main.qml b/qml/main.qml index 2e159f4..846c1fe 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -20,12 +20,6 @@ ApplicationWindow { id: appHints } - Binding { - target: TransferMethodsModel - property: "filter" - value: "image/*" - } - Timer { id: lockTimer