Export iCloud profiles as local

This commit is contained in:
世界
2026-01-13 18:43:49 +08:00
parent 7abf01b828
commit 066c7d59ea
+6 -1
View File
@@ -7,7 +7,12 @@ public extension Profile {
func toContent() throws -> LibboxProfileContent {
let content = LibboxProfileContent()
content.name = name
content.type = Int32(type.rawValue)
switch type {
case .local, .icloud:
content.type = LibboxProfileTypeLocal
case .remote:
content.type = LibboxProfileTypeRemote
}
content.config = try read()
if type == .remote {
content.remotePath = remoteURL!