mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
fix media keys crash
This commit is contained in:
parent
d6ae5ff24a
commit
2292312705
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user