Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Fix last note disappearing issue when importing ust
Browse files Browse the repository at this point in the history
  • Loading branch information
sdercolin committed Jul 7, 2020
1 parent 7097d8d commit 8e50011
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bin/
obj/
bin/
obj/
.vs/
5 changes: 5 additions & 0 deletions Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,11 @@ await Task.Run(() =>
newNote.NoteKey = Convert.ToInt32(buffer.Substring(8, buffer.Length - 8));
}
}
if (isNoteValid)
{
newTrack.NoteList.Add(newNote);
noteNum++;
}
}
}
if (!isValid)
Expand Down
2 changes: 1 addition & 1 deletion MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace UtaFormatix
/// </summary>
public partial class MainWindow : Window
{
private string version = "ver 2.1";
private string version = "ver 2.2";
private Data mainData;
private Data exportingData;
private bool imported = false;
Expand Down

0 comments on commit 8e50011

Please sign in to comment.