Some minor changes.

This commit is contained in:
LevelX2 2016-10-13 11:40:17 +02:00
parent 6df19bd718
commit 24470a4abf
3 changed files with 8 additions and 6 deletions

View file

@ -825,8 +825,11 @@ public class DragCardGrid extends JPanel implements DragCardSource, DragCardTarg
// Load separate creatures setting
separateCreatures = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_DECK_EDITOR_LAST_SEPARATE_CREATURES, "false").equals("true");
cardSort = Sort.valueOf(PreferencesDialog.getCachedValue(PreferencesDialog.KEY_DECK_EDITOR_LAST_SORT, Sort.NONE.toString()));
try {
cardSort = Sort.valueOf(PreferencesDialog.getCachedValue(PreferencesDialog.KEY_DECK_EDITOR_LAST_SORT, Sort.NONE.toString()));
} catch (IllegalArgumentException ex) {
cardSort = Sort.NONE;
}
// Sort popup
{
sortPopup = new JPopupMenu();