gui: deck editor - improved popup menu naming, added commander hint to sideboard, fixed generate/random deck dialog on cancel, removed outdated logs;

This commit is contained in:
Oleg Agafonov 2024-03-08 00:48:01 +04:00
parent ec34380bed
commit b315b46871
6 changed files with 23 additions and 18 deletions

View file

@ -58,10 +58,11 @@ public class NewPlayerPanel extends javax.swing.JPanel {
protected void generateDeck() {
String path = DeckGenerator.generateDeck();
if (path != null) {
this.txtPlayerDeck.setText(path);
MageFrame.getPreferences().put("defaultDeckPath", path);
if (path == null) {
return;
}
this.txtPlayerDeck.setText(path);
MageFrame.getPreferences().put("defaultDeckPath", path);
}
public String getPlayerName() {