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

Improve tab closing logic by avoiding redundant calls #12653

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AashifAmeer
Copy link

Description
What Changed?

  • Refactored the execute() method to always close the currently active tab.
  • Removed unnecessary conditions related to libraryTab.
  • Ensured proper logging when no tabs are available to close.

How to Test:
Open multiple tabs and execute the method—only the active tab should close.

Fixes #12530

@calixtus
Copy link
Member

calixtus commented Mar 9, 2025

We have currently a PR in pipeline that introduces a WelcomeTab, which is not a LibraryTab, but a simple Tab. Please adapt the checks accordingly. Refs #12461

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.

When opening JabRef, Ctrl+W does not behave as expected.
2 participants