fix media keys crash

This commit is contained in:
Piotr Rogowski 2022-01-22 14:30:05 +01:00
parent d6ae5ff24a
commit 2292312705
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F

View File

@ -48,9 +48,9 @@ class _PlayerState extends State<Player> with WidgetsBindingObserver {
HotKey(KeyCode.space, scope: HotKeyScope.inapp),
_playOrPause,
),
// causaes crash in Windows for aquiring global hotkey of
// causaes crash in Windows and macOS for aquiring global hotkey of
// keyboard media buttons
if (!Platform.isWindows) ...[
if (!Platform.isWindows && !Platform.isMacOS) ...[
GlobalKeyActions(
HotKey(KeyCode.mediaPlayPause),
_playOrPause,