bool CGUIDialogAddonInfo::ShowForItem(const CFileItemPtr& item) { CGUIDialogAddonInfo* dialog = (CGUIDialogAddonInfo*)g_windowManager.GetWindow(WINDOW_DIALOG_ADDON_INFO); if (!dialog) return false; if (!dialog->SetItem(item)) return false; dialog->DoModal(); return true; }
bool CGUIDialogAddonInfo::ShowForItem(const CFileItemPtr& item) { if (!item) return false; CGUIDialogAddonInfo* dialog = CServiceBroker::GetGUI()->GetWindowManager().GetWindow<CGUIDialogAddonInfo>(WINDOW_DIALOG_ADDON_INFO); if (!dialog) return false; if (!dialog->SetItem(item)) return false; dialog->Open(); return true; }