PathWeaver icon indicating copy to clipboard operation
PathWeaver copied to clipboard

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

Open natejank opened this issue 4 years ago • 0 comments

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

natejank avatar Feb 05 '22 22:02 natejank