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/issue 3659 wrong window closes command w #3680

Conversation

tampueroc
Copy link

Fixes #3659
Prevents closing the browser window unless it’s the active window.

@@ -380,6 +380,11 @@ def set_flag_func(desired_flag: int) -> Callable:
add_ellipsis_to_action_label(f.actionCopy)
add_ellipsis_to_action_label(f.action_forget)

if isinstance(self, AddCards):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self can't be AddCards here, so this doesn't make sense.


self.editor.call_after_note_saved(self._closeWindow)
evt.ignore()
if current_window() == self:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@dae
Copy link
Member

dae commented Jan 9, 2025

While I appreciate you taking the time to contribute, please make sure you test any changes first.

@dae
Copy link
Member

dae commented Jan 15, 2025

Closing to reduce clutter; happy to reopen if/when you return to this.

@dae dae closed this Jan 15, 2025
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.

Wrong window closes on command-w
3 participants