From 066c7d59ea4a90766a13010e4d6535d8017154d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 13 Jan 2026 18:43:40 +0800 Subject: [PATCH] Export iCloud profiles as local --- Library/Database/Profile+Transferable.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Database/Profile+Transferable.swift b/Library/Database/Profile+Transferable.swift index 0bc8b4c..b308638 100644 --- a/Library/Database/Profile+Transferable.swift +++ b/Library/Database/Profile+Transferable.swift @@ -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!