From 08a7dfebeaa457a64e185133cea731f687dadc25 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 18 Feb 2017 23:58:14 -0500 Subject: [PATCH] move undohistorylimit config pref, change default to 5 --- src/gui/game/GameModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/game/GameModel.cpp b/src/gui/game/GameModel.cpp index a9c3f944b9..81afa971fc 100644 --- a/src/gui/game/GameModel.cpp +++ b/src/gui/game/GameModel.cpp @@ -136,7 +136,7 @@ GameModel::GameModel(): colourPresets.push_back(ui::Colour(0, 0, 255)); colourPresets.push_back(ui::Colour(0, 0, 0)); - undoHistoryLimit = Client::Ref().GetPrefInteger("UndoHistoryLimit", 1); + undoHistoryLimit = Client::Ref().GetPrefInteger("Simulation.UndoHistoryLimit", 5); // cap due to memory usage (this is about 3.4GB of RAM) if (undoHistoryLimit > 200) undoHistoryLimit = 200; @@ -167,7 +167,7 @@ GameModel::~GameModel() Client::Ref().SetPref("Decoration.Blue", (int)colour.Blue); Client::Ref().SetPref("Decoration.Alpha", (int)colour.Alpha); - Client::Ref().SetPref("UndoHistoryLimit", undoHistoryLimit); + Client::Ref().SetPref("Simulation.UndoHistoryLimit", undoHistoryLimit); Favorite::Ref().SaveFavoritesToPrefs();