Skip to content

Deleting a waypoint does not mark path as modified and offer to save #273

Open
@natejank

Description

@natejank

Describe the bug
When a waypoint of a path is deleted and the path is otherwise unmodified, the program will not prompt to save the new path. If I then build paths, the program will not prompt to save the updated path, and the old path will be built.

To Reproduce
Steps to reproduce the behavior:

  1. Create a path
  2. Save it
  3. Close and reopen the program
  4. Load the path
  5. right click a waypoint -> Delete
  6. Click another path or click "Build Paths"

Expected behavior
Upon deleting a waypoint, pathweaver should recognize the path as modified and ask to save the updated path when switching to a different path or building.

Desktop (please complete the following information):

  • OS: Windows 10 21H2
  • Java version: OpenJDK 11.0.1 (or whatever version is run when pathweaver is run through WPILib VSCode)
  • WPILib/Pathweaver version: 2022.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions