mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Don't show quit popup on update
This commit is contained in:
parent
c653bb2eeb
commit
c6b63c34ba
|
@ -313,7 +313,7 @@ void CAutoUpdate::DoUpdates(CMenus *pMenus)
|
|||
{
|
||||
if (m_NeedUpdateClient)
|
||||
{
|
||||
pMenus->setPopup(CMenus::POPUP_QUIT);
|
||||
pMenus->Client()->Quit();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -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() {};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue