mirror of
https://github.com/Finb/Bark.git
synced 2025-12-08 21:36:01 +00:00
老版本数据迁移
This commit is contained in:
parent
8572970c62
commit
03499f9532
@ -40,8 +40,8 @@ class ServerManager: NSObject {
|
||||
super.init()
|
||||
|
||||
// 将老版本数据转换成新版本
|
||||
if let address = Settings[.currentServer] {
|
||||
let key = Settings[.key] ?? ""
|
||||
if let key = Settings[.key] {
|
||||
let address = Settings[.currentServer] ?? defaultServer
|
||||
let server = Server(id: UUID().uuidString, address: address, key: key)
|
||||
|
||||
self.servers = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user