diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/statuswindow.cpp | 5 | ||||
-rw-r--r-- | src/gui/windows/statuswindow.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp index db03fbe70..d16262cc1 100644 --- a/src/gui/windows/statuswindow.cpp +++ b/src/gui/windows/statuswindow.cpp @@ -240,6 +240,11 @@ StatusWindow::StatusWindow() : PlayerInfo::getAttribute(Attributes::CHAR_POINTS))); mCharacterPointsLabel->adjustSize(); + updateLevelLabel(); +} + +void StatusWindow::updateLevelLabel() +{ if (localPlayer && localPlayer->isGM()) { // TRANSLATORS: status window label diff --git a/src/gui/windows/statuswindow.h b/src/gui/windows/statuswindow.h index 3bc5ab6f3..34462498b 100644 --- a/src/gui/windows/statuswindow.h +++ b/src/gui/windows/statuswindow.h @@ -93,6 +93,8 @@ class StatusWindow final : public Window, const int oldVal1, const int oldVal2) override final; + void updateLevelLabel(); + private: static std::string translateLetter(const char *const letters); static std::string translateLetter2(const std::string &letters); |