mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
mobile: don't disconnect model on download
That makes no sense anymore. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2a88ff0ffb
commit
c0f2563495
1 changed files with 2 additions and 7 deletions
|
@ -436,18 +436,13 @@ Kirigami.Page {
|
|||
manager.appendTextToLog("Save downloaded dives that were selected")
|
||||
busy = true
|
||||
rootItem.showBusy("Save selected dives")
|
||||
manager.appendTextToLog("temporary disconnecting dive list model")
|
||||
diveList.diveListModel = null
|
||||
manager.appendTextToLog("Record dives")
|
||||
importModel.recordDives()
|
||||
// it's important to save the changes because the app could get killed once
|
||||
// it's in the background - and the freshly downloaded dives would get lost
|
||||
manager.saveChangesLocal()
|
||||
manager.appendTextToLog("resetting model and refreshing the dive list")
|
||||
diveModel.resetInternalData()
|
||||
manager.refreshDiveList()
|
||||
manager.appendTextToLog("pageStack popping Download page")
|
||||
pageStack.pop()
|
||||
manager.appendTextToLog("setting up the dive list model again")
|
||||
diveList.diveListModel = diveModel
|
||||
manager.appendTextToLog("pageStack switching to dive list")
|
||||
showDiveList()
|
||||
download.text = qsTr("Download")
|
||||
|
|
Loading…
Reference in a new issue