void CGUIPythonWindowDialog::Show(bool show /* = true */) { CSingleExit leaveIt(g_graphicsContext); ThreadMessage tMsg = {TMSG_GUI_PYTHON_DIALOG, 0, show ? 1 : 0}; tMsg.lpVoid = this; g_application.getApplicationMessenger().SendMessage(tMsg, true); }
void CGUIDialog::Show() { if (!g_application.IsCurrentThread()) { // make sure graphics lock is not held CSingleExit leaveIt(g_graphicsContext); CApplicationMessenger::Get().Show(this); } else Show_Internal(); }
void CGUIDialog::DoModal(int iWindowID /*= WINDOW_INVALID */, const CStdString ¶m) { if (!g_application.IsCurrentThread()) { // make sure graphics lock is not held CSingleExit leaveIt(g_graphicsContext); CApplicationMessenger::Get().DoModal(this, iWindowID, param); } else DoModal_Internal(iWindowID, param); }