mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Revert previous change
This commit is contained in:
@@ -196,10 +196,7 @@ public final class CEditorCommander extends ACEditorBase<PaperCard, Deck> {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean canSwitchAway(boolean isClosing) {
|
public boolean canSwitchAway(boolean isClosing) {
|
||||||
if (isClosing) {
|
return SEditorIO.confirmSaveChanges(FScreen.DECK_EDITOR_COMMANDER);
|
||||||
return SEditorIO.confirmSaveChanges(FScreen.DECK_EDITOR_COMMANDER);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|||||||
@@ -365,10 +365,7 @@ public final class CEditorConstructed extends ACEditorBase<PaperCard, Deck> {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean canSwitchAway(boolean isClosing) {
|
public boolean canSwitchAway(boolean isClosing) {
|
||||||
if (isClosing) {
|
return SEditorIO.confirmSaveChanges(FScreen.DECK_EDITOR_CONSTRUCTED);
|
||||||
return SEditorIO.confirmSaveChanges(FScreen.DECK_EDITOR_CONSTRUCTED);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|||||||
@@ -180,10 +180,7 @@ public final class CEditorLimited extends ACEditorBase<PaperCard, DeckGroup> {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean canSwitchAway(boolean isClosing) {
|
public boolean canSwitchAway(boolean isClosing) {
|
||||||
if (isClosing) {
|
return SEditorIO.confirmSaveChanges(getScreen());
|
||||||
return SEditorIO.confirmSaveChanges(getScreen());
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|||||||
@@ -296,14 +296,11 @@ public final class CEditorQuest extends ACEditorBase<PaperCard, Deck> {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean canSwitchAway(boolean isClosing) {
|
public boolean canSwitchAway(boolean isClosing) {
|
||||||
if (isClosing) {
|
if (SEditorIO.confirmSaveChanges(FScreen.DECK_EDITOR_QUEST)) {
|
||||||
if (SEditorIO.confirmSaveChanges(FScreen.DECK_EDITOR_QUEST)) {
|
Singletons.getModel().getQuest().save();
|
||||||
Singletons.getModel().getQuest().save();
|
return true;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|||||||
@@ -178,10 +178,7 @@ public final class CEditorVariant extends ACEditorBase<PaperCard, Deck> {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean canSwitchAway(boolean isClosing) {
|
public boolean canSwitchAway(boolean isClosing) {
|
||||||
if (isClosing) {
|
return SEditorIO.confirmSaveChanges(getScreen());
|
||||||
return SEditorIO.confirmSaveChanges(getScreen());
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|||||||
Reference in New Issue
Block a user