Skip to content

Fix model entry shows editable #3333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 1, 2024
Merged

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Jun 1, 2024

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

When you create a diagram and add an element. the diagram shows in editable mode in the model browser.

Issue Number: fixes #3326

What is the new behavior?

Editable mode is restored.

I also simplified the code a bit regarding editing.

I want to figure out if er actually need an editing property in the model class. Maybe something for a future PR ;).

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

amolenaar added 2 commits June 1, 2024 11:59
The "editing" property on the TreeItem needs to be reset when editing is
done.
No need for a start_editing() method for tables in property pages.
@github-actions github-actions bot added the python Pull requests that update Python code label Jun 1, 2024
@amolenaar amolenaar requested a review from danyeaw June 1, 2024 11:27
@danyeaw danyeaw added fix A fix for a bug and removed python Pull requests that update Python code labels Jun 1, 2024
@danyeaw danyeaw merged commit 41a88f5 into main Jun 1, 2024
@danyeaw danyeaw deleted the fix-model-entry-shows-editable branch June 1, 2024 12:00
@danyeaw
Copy link
Member

danyeaw commented Jun 1, 2024

Thanks @amolenaar !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A fix for a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

shift-Z shortcut on Mac OS can rename diagram
2 participants