Skip to content

Empty document created on startup handled by Rnote as modified by default while it should be considered as empty and unmodified by default #1258

@wl0t

Description

@wl0t

Describe the bug
A prompt to save file or ignore modifications appears when trying to close the default empty and unmodified document that is created at startup of rnote.

The first empty document created at start-up should be considered as empty and unmodified by default. (as it is the case for other empty document created when opening new tabs).

To Reproduce 1
1.Start rnote
2.Try to close rnote
3.A popup appears prompting to save the modifications or ignore modifications of the empty document.

Or equivalently:

To Reproduce 2
1.Start rnote.
2. Create a new empty document in a new tab.
3. Try to close the first empty document of the initial tab.
3.A popup appears prompting to save the modifications or ignore modifications of the empty document.

Expected behavior
This prompt should not appear as the document is empty and unmodified.

Desktop (please complete the following information):

  • OS: Fedora 40 or Windows 11
  • App Version: Rnote v0.11.0
  • Installation Source: Flatpak or .exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions