changed: have the VideoOSD close if the SHOW_OSD action is sent
authorspiff <spiff@xbmc.org>
Tue, 15 Nov 2011 14:52:17 +0000 (15:52 +0100)
committerspiff <spiff@xbmc.org>
Tue, 15 Nov 2011 14:52:17 +0000 (15:52 +0100)
this makes the action a toggle, which is useful with e.g. the
eventserver. closes #12213, thanks to maphix

xbmc/video/dialogs/GUIDialogVideoOSD.cpp

index e3363ef..402fbb9 100644 (file)
@@ -56,6 +56,11 @@ bool CGUIDialogVideoOSD::OnAction(const CAction &action)
     if (g_application.m_pPlayer != NULL && g_application.m_pPlayer->OnAction(action))
       return true;
   }
+  if (action.GetID() == ACTION_SHOW_OSD)
+  {
+    Close();
+    return true;
+  }
 
   return CGUIDialog::OnAction(action);
 }