Skip to content

Commit

Permalink
#360: Save change in early return
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Jun 28, 2024
1 parent 6b727df commit 639a6ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scan/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,9 @@ impl GameLayout {

if initial.children.is_empty() {
self.mapping.backups.pop_front();
if save {
self.save();
}
return Some(());
}

Expand Down

0 comments on commit 639a6ac

Please sign in to comment.