[videodb] Remove nested transaction when saving state after stopping PVR playback
[xbmc.git] / xbmc / windows / GUIWindowStartup.cpp
blobd15c6a43166d2cf79af04f17793df8f32afaa8e2
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #include "GUIWindowStartup.h"
11 #include "ServiceBroker.h"
12 #include "guilib/GUIComponent.h"
13 #include "guilib/GUIWindowManager.h"
14 #include "guilib/WindowIDs.h"
15 #include "input/actions/Action.h"
17 CGUIWindowStartup::CGUIWindowStartup(void)
18 : CGUIWindow(WINDOW_STARTUP_ANIM, "Startup.xml")
22 CGUIWindowStartup::~CGUIWindowStartup(void) = default;
24 bool CGUIWindowStartup::OnAction(const CAction &action)
26 if (action.IsMouse())
27 return true;
28 return CGUIWindow::OnAction(action);
31 void CGUIWindowStartup::OnDeinitWindow(int nextWindowID)
33 CGUIWindow::OnDeinitWindow(nextWindowID);
35 // let everyone know that the user interface is now ready for usage
36 CGUIMessage msg(GUI_MSG_NOTIFY_ALL, 0, 0, GUI_MSG_UI_READY);
37 CServiceBroker::GetGUI()->GetWindowManager().SendThreadMessage(msg);