mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-03 01:24:37 +02:00
Don't save in database until download is complete
This commit is contained in:
parent
a7424cc428
commit
37fa931672
2 changed files with 20 additions and 11 deletions
|
@ -76,8 +76,10 @@ class Database {
|
|||
}
|
||||
}
|
||||
|
||||
private func setLastActiveConfigIndexToNil() {
|
||||
setLastActiveConfigIndex(index: nil)
|
||||
public func setLastActiveConfigIndexToNil() {
|
||||
Database.realmQueue.sync {
|
||||
setLastActiveConfigIndex(index: nil)
|
||||
}
|
||||
}
|
||||
|
||||
private func setLastActiveConfigIndex(index: Int?) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue