summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-30 09:17:03 -0700
committerIra Rice <irarice@gmail.com>2009-01-30 09:17:03 -0700
commitcc37b4a9153379d5c5529ba85305d36efba2cd85 (patch)
treea0a6a1a75447cdb6aef447bfc660bde78ef52785 /src/gui
parent4c0f83e55fd1f6fabc2d8152843175b8ea55bc2b (diff)
downloadmana-cc37b4a9153379d5c5529ba85305d36efba2cd85.tar.gz
mana-cc37b4a9153379d5c5529ba85305d36efba2cd85.tar.bz2
mana-cc37b4a9153379d5c5529ba85305d36efba2cd85.tar.xz
mana-cc37b4a9153379d5c5529ba85305d36efba2cd85.zip
Changed the minimap to remember whether the minimap was toggled or not
when the client was last exited. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/minimap.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index d1d3af46..0b156fc4 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -41,7 +41,7 @@ Minimap::Minimap():
mProportion(0.5)
{
setWindowName(_("MiniMap"));
- mShow = config.getValue(getWindowName() + "Visible", true);
+ mShow = config.getValue(getWindowName() + "Show", true);
setDefaultSize(5, 25, 100, 100);
setResizable(true);
@@ -52,6 +52,8 @@ Minimap::~Minimap()
{
if (mMapImage)
mMapImage->decRef();
+
+ config.setValue(getWindowName() + "Show", mShow);
}
void Minimap::setMapImage(Image *img)
@@ -106,7 +108,6 @@ void Minimap::setMapImage(Image *img)
void Minimap::toggle()
{
mShow = !mShow;
- config.setValue(getWindowName() + "Visible", mShow);
}
void Minimap::draw(gcn::Graphics *graphics)