mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-03 01:24:37 +02:00
Fix lockOrientation setting and add Realm db migration;
This commit is contained in:
parent
371fcacc87
commit
a262efe9da
5 changed files with 10 additions and 18 deletions
|
@ -8,18 +8,12 @@
|
|||
import Foundation
|
||||
import RealmSwift
|
||||
|
||||
enum LockOrientationSetting: Codable {
|
||||
case NONE
|
||||
case PORTRAIT
|
||||
case LANDSCAPE
|
||||
}
|
||||
|
||||
class DeviceSettings: Object {
|
||||
@Persisted var disableAutoRewind: Bool = false
|
||||
@Persisted var enableAltView: Bool = false
|
||||
@Persisted var jumpBackwardsTime: Int = 10
|
||||
@Persisted var jumpForwardTime: Int = 10
|
||||
@Persisted var lockOrientation: LockOrientationSetting = LockOrientationSetting.NONE
|
||||
@Persisted var lockOrientation: String = "NONE"
|
||||
}
|
||||
|
||||
func getDefaultDeviceSettings() -> DeviceSettings {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue