mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 06:37:14 -04:00
fix: macOS error 50 on uploading files (#6853)
This commit is contained in:
parent
1bcda3944f
commit
76710ea244
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue