Skip to content
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

Fix usage of ToggleBookmarkAction in split windows scenario #7384

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

matthiasblaesing
Copy link
Contributor

It was observed, that the "Goto Bookmark" actions cause the goto action in the correct window (the focused one or the one the toolbar is located in), while the "Toogle Bookmark" action invokes the action for the first editor window.

The implementation of the ToggleBookmarkAction implies that the button should reflect whether or not there s a bookmark on the current line (rendering the button active/pressed when there is a bookmark). It was observered, that this does not work.

So instead of fixing the complex implementation, the implementation for ToggleBookmarkAction was aligned with the "GotoBookmarkAction", inheriting the "find the right text component" behavior from BaseAction.

Closes: #4155

It was observed, that the "Goto Bookmark" actions cause the goto action
in the correct window (the focused one or the one the toolbar is
located in), while the "Toogle Bookmark" action invokes the
action for the first editor window.

The implementation of the ToggleBookmarkAction implies that the button
should reflect whether or not there s a bookmark on the current line
(rendering the button active/pressed when there is a bookmark). It was
observered, that this does not work.

So instead of fixing the complex implementation, the implementation for
ToggleBookmarkAction was aligned with the "GotoBookmarkAction",
inheriting the "find the right text component" behavior from BaseAction.

Closes: apache#4155
@matthiasblaesing matthiasblaesing added Editor UI User Interface ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels May 19, 2024
@matthiasblaesing matthiasblaesing added this to the NB23 milestone May 19, 2024
@matthiasblaesing
Copy link
Contributor Author

Will merge shortly.

@matthiasblaesing matthiasblaesing merged commit d8e2006 into apache:master Jun 5, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Editor UI User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error with splitted windows
1 participant