Skip to content

Loading an example over an unmodified example warns that unsaved work will be discarded #397

Open

Description

@rozyczko

Reported in user testing of v1.6.1 (multiple-contrasts session, 23/11/2026).

What happens
With an example loaded and not modified (here DSPC monolayer, three contrasts), clicking another example (Film in three water contrasts) opens the Load an example dialog:

This session holds work that has not been saved to a project. Loading the example "…" discards it.

The tester had only just installed the app and had not changed anything, so the warning reads as a false alarm.

Cause
Examples.qml::requestExample asks projectHasCustomContent() when no project was created. logic/project.py::has_custom_content compares the content fingerprint with the new-project default, so an untouched example always counts as custom content.

Expected
No prompt when the current session is an unmodified example (or anything else that can be reloaded as-is). Take the fingerprint after an example loads as the baseline, and prompt only once the user has changed something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [priority] medium[scope] buguser-experience-enhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions