From b7bc2f74f4f2253bd67b2d51fa3d2c47d648453e Mon Sep 17 00:00:00 2001 From: Lloyd Bryant Date: Fri, 25 Jul 2008 17:00:48 +0000 Subject: Applied patch by ElvenProgrammer to remember window locations between sessions --- src/game.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 070cab52..2522c6e5 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -215,10 +215,15 @@ void createGuiWindows(Network *network) //buddyWindow->setPosition(10, minimap->getHeight() + 30); // Set initial window visibility - chatWindow->setVisible(true); - miniStatusWindow->setVisible(true); - menuWindow->setVisible(true); - itemShortcutWindow->setVisible(true); + chatWindow->setVisible((bool) config.getValue( + chatWindow->getWindowName() + "Visible", true)); + miniStatusWindow->setVisible((bool) config.getValue( + miniStatusWindow->getWindowName() + "Visible", + true)); + menuWindow->setVisible((bool) config.getValue( + menuWindow->getWindowName() + "Visible", true)); + itemShortcutWindow->setVisible((bool) config.getValue( + itemShortcutWindow->getWindowName() + "Visible", true)); if (config.getValue("logToChat", 0)) { -- cgit v1.2.3-60-g2f50