Skip to content

If an autosave occurs while a window is open, OpenNBS essentially freezes #442

@CreeperPookie

Description

@CreeperPookie

Describe the bug
If you open an inner window (set pitch, velocity, etc) and an autosave occurs, the popup closes but the background stays, essentially locking you out of everything. Because it still saves though, it is possible to restart it without losing any progress.

To Reproduce
Steps to reproduce the behavior:

  1. Open a new song

  2. Ensure autosave is on and optionally, decrease autosave delay as low as possible

  3. Save the song as an NBS file

  4. Add a note to the song

  5. Select the note and open an action GUI on it (pitch, velocity, etc)

  6. Wait for the autosave to occur (this is why you might want to decrease autosave delay)

  7. See error

Expected behavior
I'd say the most optimal solution would be to do nothing, and keep the GUI open when saving as-is.

Video

Minecraft.Note.Block.Studio.2024-03-30.02-02-37.mp4.mp4

Additional context
I was able to find one reference to this in #107, but that seemed to be related to selecting and deselecting notes with somewhat precise timing. However, they did mention they had a GUI open during a save operation, which could have also caused this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: BugSomething isn't workingS: Resolved in next releaseThis bugfix or suggestion has been applied to the code

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions