Skip to content

"Save As..." and "Open Recent..." don't work well together #5902

Description

@villares

Description

I use "Save As..." a lot to try a new idea from a previous sketch, and I often want to open the previous sketch to check out on a previous state of the code.
The "Open Recent" feature ignores a previously open sketch if it was "saved as" something new.

Expected Behavior

I wish the "Open Recent" list kept the name of the recently open sketch, even if it was saved as something else.

Current Behavior

"Open Recent" only lists the name of a recently open sketch if it was not "saved as" with another name. (Note that in case of a "Save As", the sketch was not "renamed", there is still a copy on disk of the previously named sketch).

Steps to Reproduce

  1. Create a sketch named sketch_A, save and close.
  2. Crete a sketch named sketch_B, save only (without closing).
  3. Save sketch_B as sketch_C.
  4. Look at "Open Recent" options. You will see: sketch_A and sketch_C only.

Your Environment

  • Processing version: 3.5.3
  • Operating System and OS version: Xubuntu 18.0
    (I think it's the same on Mac OS and Windows).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions