summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/shopwindow.cpp5
-rw-r--r--src/gui/windows/shopwindow.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 97edec99d..aceb872fc 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -183,9 +183,12 @@ ShopWindow::ShopWindow():
loadWindowState();
instances.push_back(this);
+}
+
+void ShopWindow::postInit()
+{
setVisible(false);
enableVisibleSound(true);
-
updateButtonsAndLabels();
}
diff --git a/src/gui/windows/shopwindow.h b/src/gui/windows/shopwindow.h
index bf7a61c4a..52d85c9e5 100644
--- a/src/gui/windows/shopwindow.h
+++ b/src/gui/windows/shopwindow.h
@@ -67,6 +67,8 @@ class ShopWindow final : public Window,
*/
~ShopWindow();
+ void postInit();
+
/**
* Called when receiving actions from the widgets.
*/