优化有线传图页设备展示,并缓存传输模式选项。
未连接状态改为「未连接相机」;设备型号映射为可读名称而非 iPhone12,1 等内部代号;边拍边传/拍后传输按账号持久化并在下次进入时恢复。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -481,6 +481,9 @@ final class WiredCameraTransferViewModel: ObservableObject {
|
||||
userIDProvider: { accountContext.profile?.userId ?? "" }
|
||||
)
|
||||
userIDProvider = { accountContext.profile?.userId ?? "" }
|
||||
if let cachedMode = photoStore?.loadTransferModeOption() {
|
||||
transferModeOption = cachedMode
|
||||
}
|
||||
}
|
||||
let uploader = TravelAlbumMaterialUploader(
|
||||
api: api,
|
||||
@ -542,6 +545,7 @@ final class WiredCameraTransferViewModel: ObservableObject {
|
||||
func selectTransferMode(_ option: String, api: any TravelAlbumServing, ossService: any OSSUploadServing, scenicID: Int) {
|
||||
guard option == Self.modeLiveCapture || option == Self.modePostShootTransfer else { return }
|
||||
transferModeOption = option
|
||||
photoStore?.saveTransferModeOption(option)
|
||||
let autoUpload = option == Self.modeLiveCapture
|
||||
let uploader = TravelAlbumMaterialUploader(
|
||||
api: api,
|
||||
|
||||
Reference in New Issue
Block a user