Skip to content

Commit

Permalink
move undohistorylimit config pref, change default to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Feb 19, 2017
1 parent 61e19a3 commit 08a7dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/game/GameModel.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 08a7dfe

Please sign in to comment.