mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Fix issue with popups not blocking
This commit is contained in:
@@ -39,7 +39,6 @@ import forge.toolbox.FDisplayObject;
|
|||||||
import forge.toolbox.FEvent;
|
import forge.toolbox.FEvent;
|
||||||
import forge.toolbox.FEvent.FEventHandler;
|
import forge.toolbox.FEvent.FEventHandler;
|
||||||
import forge.toolbox.FLabel;
|
import forge.toolbox.FLabel;
|
||||||
import forge.toolbox.FOptionPane;
|
|
||||||
import forge.toolbox.FScrollPane;
|
import forge.toolbox.FScrollPane;
|
||||||
import forge.util.FileUtil;
|
import forge.util.FileUtil;
|
||||||
import forge.util.ThreadUtil;
|
import forge.util.ThreadUtil;
|
||||||
@@ -430,8 +429,8 @@ public class NewQuestScreen extends FScreen {
|
|||||||
case SealedDeck:
|
case SealedDeck:
|
||||||
case Cube:
|
case Cube:
|
||||||
dckStartPool = getSelectedDeck();
|
dckStartPool = getSelectedDeck();
|
||||||
if (null == dckStartPool) {
|
if (dckStartPool == null) {
|
||||||
FOptionPane.showMessageDialog("You have not selected a deck to start.", "Cannot start a quest", FOptionPane.ERROR_ICON);
|
SOptionPane.showMessageDialog("You have not selected a deck to start.", "Cannot start a quest", FOptionPane.ERROR_ICON);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -501,11 +500,11 @@ public class NewQuestScreen extends FScreen {
|
|||||||
questName = QuestUtil.cleanString(questName);
|
questName = QuestUtil.cleanString(questName);
|
||||||
|
|
||||||
if (questName.isEmpty()) {
|
if (questName.isEmpty()) {
|
||||||
FOptionPane.showMessageDialog("Please specify a quest name.");
|
SOptionPane.showMessageDialog("Please specify a quest name.");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (FileUtil.doesFileExist(ForgeConstants.QUEST_SAVE_DIR + questName + ".dat")) {
|
if (FileUtil.doesFileExist(ForgeConstants.QUEST_SAVE_DIR + questName + ".dat")) {
|
||||||
FOptionPane.showMessageDialog("A quest already exists with that name. Please pick another quest name.");
|
SOptionPane.showMessageDialog("A quest already exists with that name. Please pick another quest name.");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user