Explicitely save preferences on startup

Before, the preferences were saved as a side effect of loading files in
the Editor, but it seems better to explicitely save them as well (this
should prevent problems later on, if the Editor class is no longer used
in --verify or --upload mode).
This commit is contained in:
Matthijs Kooijman 2014-04-07 10:38:25 +02:00 committed by Cristian Maglie
parent e0c599d733
commit bbd0128664
1 changed files with 5 additions and 0 deletions

View File

@ -433,6 +433,11 @@ public class Base {
}
}
// Save the preferences. For GUI mode, this happens in the quit
// handler, but for other modes we should also make sure to save
// them.
Preferences.save();
switch (action) {
case VERIFY:
case UPLOAD: