Skip to content

Conversation

@SiboVG
Copy link
Member

@SiboVG SiboVG commented Mar 30, 2023

This PR is a continuation of #2149, so merge that first. It fixes #2158 by adding an ok/cancel button in the simulation edit dialog, similar to what is present for component editing.

Changes:

  • The edit simulation dialog will now get an asterisk symbol once a modification has been made.
  • Clicking the "Cancel" button in the edit sim dialog will pop up a confirmation dialog on whether to discard the changes. Just like with component editing, you can choose to not show that dialog again by changing a setting in the preferences.
  • Clicking the "Ok" button is the usual behavior.

Demo:

Screen.Recording.2023-03-30.at.04.12.15.mp4

NOTE: this PR could be improved upon once #1391 is implemented.

@hcraigmiller
Copy link
Collaborator

hcraigmiller commented Mar 30, 2023

The cancel button applies the (1) change to the launch rod length; (2) always launch up or down wind check box.

@SiboVG
Copy link
Member Author

SiboVG commented Mar 30, 2023

The cancel button applies the (1) change to the launch rod length; (2) always launch up or down wind check box.

Fixed now. This was actually a pre-existing bug, where setting the launch rod length or launch into wind boolean did not fire a change event.

@hcraigmiller
Copy link
Collaborator

Functions as expected, no anomalous behavior found.

OR Build: 1682
Microsoft Windows 11 Pro; 10.0.22621 Build 22621.1105; Windows Feature Experience Pack 1000.22638.1000.0
Java(TM) SE Runtime Environment 18.9 (build 11.0.18+9-LTS-195)

@SiboVG SiboVG merged commit d64a8b9 into openrocket:unstable Apr 1, 2023
@SiboVG SiboVG deleted the issue-2158 branch April 1, 2023 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Ok/Cancel button for simulation editing

2 participants