diff options
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index af7537064..54f657a30 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -405,14 +405,18 @@ Kirigami.ScrollablePage { } } + function showDownloadPage() { + downloadFromDc.dcImportModel.clearTable() + stackView.push(downloadFromDc) + } + property QtObject downloadFromDCAction: Kirigami.Action { icon { name: ":/icons/downloadDC" color: subsurfaceTheme.primaryColor } onTriggered: { - downloadFromDc.dcImportModel.clearTable() - stackView.push(downloadFromDc) + showDownloadPage() } } |