Skip to content

Commit

Permalink
Merge pull request #904 from maiko3tattun/1024_NotSaveNewProject
Browse files Browse the repository at this point in the history
Don't show save dialog for new project
  • Loading branch information
stakira authored Nov 14, 2023
2 parents 82bc02b + 8e1b380 commit 09a01cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenUtau.Core/DocManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void SearchAllPlugins() {

public bool ChangesSaved {
get {
return (Project.Saved || Project.tracks.Count == 0) &&
return (Project.Saved || (Project.tracks.Count <= 1 && Project.parts.Count == 0)) &&
(undoQueue.Count > 0 && savedPoint == undoQueue.Last() || undoQueue.Count == 0 && savedPoint == null);
}
}
Expand Down

0 comments on commit 09a01cc

Please sign in to comment.