Explorar o código

Always use play_pause for Windows media keys.

Ian Walton %!s(int64=4) %!d(string=hai) anos
pai
achega
2a4066ba88
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/taskbar/TaskbarComponentWin.cpp

+ 2 - 2
src/taskbar/TaskbarComponentWin.cpp

@@ -424,11 +424,11 @@ HRESULT TaskbarComponentWin::buttonPressed(ISystemMediaTransportControls* sender
   switch (button)
   {
     case SystemMediaTransportControlsButton::SystemMediaTransportControlsButton_Play:
-      InputComponent::Get().sendAction("play");
+      InputComponent::Get().sendAction("play_pause");
       QLOG_DEBUG() << "Received play button press";
       break;
     case SystemMediaTransportControlsButton::SystemMediaTransportControlsButton_Pause:
-      InputComponent::Get().sendAction("pause");
+      InputComponent::Get().sendAction("play_pause");
       QLOG_DEBUG() << "Received pause button press";
       break;
     case SystemMediaTransportControlsButton::SystemMediaTransportControlsButton_Next: