mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Saving a Deck is now performed ONLY if there is any actual change to save onto disk. Otherwise, the whole op is skipped.
This commit is contained in:
@@ -45,7 +45,7 @@ public class SEditorIO {
|
||||
Localizer.getInstance().getMessage("lblAlreadyDeckName") + name + Localizer.getInstance().getMessage("lblOverwriteConfirm"),
|
||||
Localizer.getInstance().getMessage("lblOverwriteDeck"));
|
||||
} else {
|
||||
performSave = true;
|
||||
performSave = !controller.isSaved();
|
||||
}
|
||||
}
|
||||
// Confirm if a new deck will be created
|
||||
@@ -88,7 +88,7 @@ public class SEditorIO {
|
||||
DeckPreferences.setCurrentDeck(deckStr);
|
||||
}
|
||||
|
||||
return true;
|
||||
return performSave;
|
||||
}
|
||||
|
||||
private final static ImmutableList<String> confirmSaveOptions = ImmutableList.of(
|
||||
|
||||
Reference in New Issue
Block a user