mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Removed wrong/old Preference load of sortType.
This commit is contained in:
parent
493729438f
commit
0beace4547
2 changed files with 2 additions and 5 deletions
|
|
@ -186,7 +186,7 @@ public class CardsList extends javax.swing.JPanel implements MouseListener, ICar
|
|||
}
|
||||
|
||||
public List<Integer> asList(final int[] is) {
|
||||
List<Integer> list = new ArrayList<Integer>();
|
||||
List<Integer> list = new ArrayList<>();
|
||||
for (int i : is) {
|
||||
list.add(i);
|
||||
}
|
||||
|
|
@ -224,7 +224,7 @@ public class CardsList extends javax.swing.JPanel implements MouseListener, ICar
|
|||
cardArea.removeAll();
|
||||
if (cards != null && cards.size() > 0) {
|
||||
Rectangle rectangle = new Rectangle(Config.dimensions.frameWidth, Config.dimensions.frameHeight);
|
||||
List<CardView> sortedCards = new ArrayList<CardView>(cards.values());
|
||||
List<CardView> sortedCards = new ArrayList<>(cards.values());
|
||||
switch (sortSetting.getSortBy()) {
|
||||
case NAME:
|
||||
Collections.sort(sortedCards, new CardViewNameComparator());
|
||||
|
|
|
|||
|
|
@ -308,9 +308,6 @@ public class DeckEditorPanel extends javax.swing.JPanel {
|
|||
}
|
||||
}
|
||||
});
|
||||
// Set Sort from Preferences
|
||||
SortBy sortBy = SortBy.getByString(PreferencesDialog.getCachedValue(PreferencesDialog.KEY_DRAFT_SORT_BY, "Color"));
|
||||
deckArea.getDeckList().setSortBy(sortBy);
|
||||
refreshDeck();
|
||||
|
||||
this.setVisible(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue