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

Reliably open documents from sidebar #1465

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Sep 19, 2024

Fixes #1403

Using the item-selected signal from the SourceList to open documents causes problems when documents are removed for any reason because this causes unwanted documents to selected and opened. In master this is fixed by a hack involving some select signals being ignored but this is not reliable. Quite often clicking on an item in the sidebar fails to open it because the signal is falsely ignored.

Instead, this PR uses item activation to trigger document opening/tab selection. To maintain the same single click behaviour the SourceList is modified so activate_on_single_click is accessible.

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.

Sidebar: First select fails to open document after branch change
1 participant