Skip to content

Improve tab closing logic by avoiding redundant calls #12653

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

Closed
wants to merge 2 commits into 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

@koppor koppor marked this pull request as draft March 12, 2025 00:27
Copy link

trag-bot bot commented Mar 20, 2025

@trag-bot didn't find any issues in the code! ✅✨

@koppor koppor mentioned this pull request Apr 17, 2025
7 tasks
@koppor
Copy link
Member

koppor commented Apr 17, 2025

Logic should compred with #12942

@Siedlerchr
Copy link
Member

There has been no activiy in this PR since a while, so I woud close it.
Closing this PR due to inactivity 💤 Please reopen the PR when you continue working on this

@Siedlerchr Siedlerchr closed this Apr 17, 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.

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