mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Merge pull request #8888 from dobrykafe/pr-fix-updater
Add missing parentheses in updater code
This commit is contained in:
commit
51c0b4dafc
|
@ -3310,21 +3310,21 @@ void CMenus::RenderSettingsDDNet(CUIRect MainView)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(State >= IUpdater::GETTING_MANIFEST && State < IUpdater::NEED_RESTART)
|
else if(State >= IUpdater::GETTING_MANIFEST && State < IUpdater::NEED_RESTART)
|
||||||
str_copy(aBuf, Localize("Updating…");
|
str_copy(aBuf, Localize("Updating…"));
|
||||||
else if(State == IUpdater::NEED_RESTART)
|
else if(State == IUpdater::NEED_RESTART)
|
||||||
{
|
{
|
||||||
str_copy(aBuf, Localize("DDNet Client updated!"));
|
str_copy(aBuf, Localize("DDNet Client updated!"));
|
||||||
m_NeedRestartUpdate = true;
|
m_NeedRestartUpdate = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
str_copy(aBuf, Localize("No updates available");
|
str_copy(aBuf, Localize("No updates available"));
|
||||||
UpdaterRect.VSplitLeft(TextRender()->TextWidth(14.0f, aBuf, -1, -1.0f) + 10.0f, &UpdaterRect, &Button);
|
UpdaterRect.VSplitLeft(TextRender()->TextWidth(14.0f, aBuf, -1, -1.0f) + 10.0f, &UpdaterRect, &Button);
|
||||||
Button.VSplitLeft(100.0f, &Button, nullptr);
|
Button.VSplitLeft(100.0f, &Button, nullptr);
|
||||||
static CButtonContainer s_ButtonUpdate;
|
static CButtonContainer s_ButtonUpdate;
|
||||||
if(DoButton_Menu(&s_ButtonUpdate, Localize("Check now"), 0, &Button))
|
if(DoButton_Menu(&s_ButtonUpdate, Localize("Check now"), 0, &Button))
|
||||||
{
|
{
|
||||||
Client()->RequestDDNetInfo();
|
Client()->RequestDDNetInfo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ui()->DoLabel(&UpdaterRect, aBuf, 14.0f, TEXTALIGN_ML);
|
Ui()->DoLabel(&UpdaterRect, aBuf, 14.0f, TEXTALIGN_ML);
|
||||||
|
|
Loading…
Reference in a new issue