mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
reflow a few oneline if statements
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -312,13 +312,17 @@ public final class DeckManager extends ItemManager<DeckProxy> implements IHasGam
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Singletons.getControl().ensureScreenActive(screen)) { return; }
|
if (!Singletons.getControl().ensureScreenActive(screen)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (editorCtrl != null) {
|
if (editorCtrl != null) {
|
||||||
CDeckEditorUI.SINGLETON_INSTANCE.setEditorController(editorCtrl);
|
CDeckEditorUI.SINGLETON_INSTANCE.setEditorController(editorCtrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!SEditorIO.confirmSaveChanges(screen, true)) { return; } //ensure previous deck on screen is saved if needed
|
if (!SEditorIO.confirmSaveChanges(screen, true)) {
|
||||||
|
return;
|
||||||
|
} //ensure previous deck on screen is saved if needed
|
||||||
|
|
||||||
CDeckEditorUI.SINGLETON_INSTANCE.getCurrentEditorController().getDeckController().load(deck.getPath(), deck.getName());
|
CDeckEditorUI.SINGLETON_INSTANCE.getCurrentEditorController().getDeckController().load(deck.getPath(), deck.getName());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user