mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-25 21:04:02 +02:00
Don't save in database until download is complete
This commit is contained in:
@@ -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?) {
|
||||
|
||||
Reference in New Issue
Block a user