🐛 Fix desktop panic when download things

This commit is contained in:
LittleSheep 2024-08-07 13:50:50 +08:00
parent 8283272a3b
commit 0b2309816f

View File

@ -70,7 +70,7 @@ class _AttachmentFullScreenState extends State<AttachmentFullScreen> {
'/attachments/${widget.item.id}',
);
if (PlatformInfo.isWeb) {
if (PlatformInfo.isWeb || PlatformInfo.isDesktop) {
await launchUrlString(url);
return;
}