Improve Draft GUI flow

This commit is contained in:
tool4EvEr
2021-01-15 22:32:07 +01:00
parent a32611528e
commit 704f93a4dc
2 changed files with 2 additions and 2 deletions

View File

@@ -225,7 +225,7 @@ public class ImageView<T extends InventoryItem> extends ItemView<T> {
group.isCollapsed = !group.isCollapsed;
btnExpandCollapseAll.updateIsAllCollapsed();
clearSelection(); //must clear selection since indices and visible items will be changing
updateLayout(false);
updateLayout(true);
}
break;
}

View File

@@ -300,7 +300,7 @@ public class CEditorDraftingProcess extends ACEditorBase<PaperCard, DeckGroup> {
*/
@Override
public boolean canSwitchAway(boolean isClosing) {
if (isClosing && !saved) {
if (isClosing && !saved && this.boosterDraft.hasNextChoice()) {
String userPrompt = localizer.getMessage("lblEndDraftConfirm");
return FOptionPane.showConfirmDialog(userPrompt, localizer.getMessage("lblLeaveDraft"), localizer.getMessage("lblLeave"), localizer.getMessage("lblCancel"), false);
}