fix: macOS error 50 on uploading files (#6853)

This commit is contained in:
Lucas 2024-11-25 10:39:15 +08:00 committed by Lucas.Xu
parent 1bcda3944f
commit 76710ea244

View file

@ -323,8 +323,7 @@ class FileBlockComponentState extends State<FileBlockComponent>
FileUrlType urlType,
String url,
) async {
if ([FileUrlType.cloud, FileUrlType.network].contains(urlType) ||
UniversalPlatform.isDesktopOrWeb) {
if ([FileUrlType.cloud, FileUrlType.network].contains(urlType)) {
await afLaunchUrlString(url);
} else {
final result = await OpenFilex.open(url);