diff --git a/lib/src/pages/downloader.dart b/lib/src/pages/downloader.dart index adb1062..9505e48 100644 --- a/lib/src/pages/downloader.dart +++ b/lib/src/pages/downloader.dart @@ -30,7 +30,7 @@ class Downloader extends StatefulWidget { } class _DownloaderState extends State { - final notificationsClient = NotificationsClient(); + final notificationsClient = Platform.isMacOS ? null : NotificationsClient(); final curlPattern = RegExp("( [0-9.]+%)"); late final Stream _progressStream; bool _downloadFinished = false; @@ -71,7 +71,7 @@ class _DownloaderState extends State { controller.close(); setState(() { _downloadFinished = true; - notificationsClient.notify( + notificationsClient?.notify( _cancelled ? context.t('Download cancelled') : context.t('Download complete'),