Skip to content

Commit

Permalink
Don't autosave while inserting holds
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymonf committed Nov 14, 2023
1 parent b464f01 commit 1568727
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions BAKKA_Editor/Views/MainView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,11 @@ private void AutoSaveTimer_Tick(object? sender, EventArgs e)
{
if ((chart.Notes.Count > 0 || chart.Gimmicks.Count > 0) && !chart.IsSaved)
{
chart.WriteFile(fileStream, false);
File.WriteAllLines(tempStatusPath, new[] { "true", DateTime.Now.ToString("yyyy-MM-dd HH:mm") });
if (!CurrentlyInsertingHold())
{
chart.WriteFile(fileStream, false);
File.WriteAllLines(tempStatusPath, new[] {"true", DateTime.Now.ToString("yyyy-MM-dd HH:mm")});
}
}
else
{
Expand Down

0 comments on commit 1568727

Please sign in to comment.