Skip to content

Commit

Permalink
Fix "no changes" warning for edits made only to embedded resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed May 20, 2024
1 parent 541bed7 commit c255ac3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void export(@Nonnull Workspace workspace) {
// Check if the user hasn't made any changes. Plenty of people have not understood that their changes weren't
// saved for one reason or another (the amount of people seeing a red flash thinking that is fine is crazy)
WorkspaceResource primaryResource = workspace.getPrimaryResource();
boolean noChangesFound = exportConfig.getWarnNoChanges().getValue() && primaryResource.bundleStream()
boolean noChangesFound = exportConfig.getWarnNoChanges().getValue() && primaryResource.bundleStreamRecursive()
.allMatch(b -> b.getDirtyKeys().isEmpty());
if (noChangesFound) {
Alert alert = new Alert(Alert.AlertType.CONFIRMATION, Lang.get("dialog.file.nochanges"), ButtonType.YES, ButtonType.NO);
Expand Down

0 comments on commit c255ac3

Please sign in to comment.