Don't show quit popup on update

This commit is contained in:
def 2014-08-26 22:06:35 +02:00
parent c653bb2eeb
commit c6b63c34ba
3 changed files with 3 additions and 3 deletions

View file

@ -313,7 +313,7 @@ void CAutoUpdate::DoUpdates(CMenus *pMenus)
{
if (m_NeedUpdateClient)
{
pMenus->setPopup(CMenus::POPUP_QUIT);
pMenus->Client()->Quit();
return;
}

View file

@ -17,7 +17,6 @@ protected:
class IKernel *Kernel() const { return m_pClient->Kernel(); }
class IGraphics *Graphics() const { return m_pClient->Graphics(); }
class ITextRender *TextRender() const { return m_pClient->TextRender(); }
class IClient *Client() const { return m_pClient->Client(); }
class IInput *Input() const { return m_pClient->Input(); }
class IStorage *Storage() const { return m_pClient->Storage(); }
class CUI *UI() const { return m_pClient->UI(); }
@ -34,6 +33,7 @@ protected:
class CCollision *Collision() const { return m_pClient->Collision(); }
public:
virtual ~CComponent() {}
class IClient *Client() const { return m_pClient->Client(); }
virtual void OnStateChange(int NewState, int OldState) {};
virtual void OnConsoleInit() {};

View file

@ -1075,7 +1075,7 @@ int CMenus::Render()
else if(m_Popup == POPUP_AUTOUPDATE)
{
pTitle = Localize("Auto-Update");
pExtraText = Localize("An update to DDNet client is available. Do you want to update now? This may restart the client. If an update fails, make sure the client has permissions to modify files.");
pExtraText = Localize("An update to DDNet client is available. Do you want to update now? This will restart the client. If an update fails, make sure the client has permissions to modify files.");
ExtraAlign = -1;
}
#endif