GUI: Save/restore the last used page in the grid save/load dialog.

This allows opening the dialog on (nearly) the same page again as when it was
closed. Sadly due to the different number of entries in the save and load
version this is not always exactly the same page as before. Same goes for
resolution changes.

Thanks to wjp for suggesting this.
This commit is contained in:
Johannes Schickel 2012-09-26 02:11:39 +02:00
parent be9c9e59b7
commit 66fb399227
2 changed files with 37 additions and 2 deletions

View file

@ -238,7 +238,7 @@ void registerDefaults() {
ConfMan.registerDefault("record_time_file_name", "record.time");
ConfMan.registerDefault("gui_saveload_chooser", "grid");
ConfMan.registerDefault("gui_saveload_last_pos", "0");
}
//