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: Fixed crash that would occur when holding down ctrl + t #10385

Closed

Conversation

QuaintMako
Copy link
Contributor

Resolved / Related Issues
Items resolved / related issues by this PR.

Validation
How did you test these changes?

  • Built and ran the app

@yaira2 yaira2 changed the title Fix: Tab creation through keyboard acceleration no longer provokes crashes. Fix: Fixed crash that would occur when holding down ctrl + t Nov 2, 2022
Copy link
Contributor

@ferrariofilippo ferrariofilippo left a comment

Choose a reason for hiding this comment

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

LGTM
I tested this and it solved the crash

@yaira2
Copy link
Member

yaira2 commented Nov 8, 2022

It solves the crash but I'm wondering if we can have this logic apply to all keyboard shortcuts.

@QuaintMako
Copy link
Contributor Author

It solves the crash but I'm wondering if we can have this logic apply to all keyboard shortcuts.

We may be able to do that by extending #10416 and developping a kind of shortcut executer side by side.

@yaira2
Copy link
Member

yaira2 commented Nov 8, 2022

Would it make sense to target the branch that has @cinqmilleans work?

@cinqmilleans
Copy link
Contributor

The problem should no longer arise with the new hotkey management.
Before: The shortcut (ctrl + 2, ...) is added when the tab is created. I guess this is limited to 9 or 10 tabs.
After: The shortcut is created when a hotkey is assigned. If the user (or the default) assigned ctrl+2 to the command ShowTab2 (example), the action is assigned even if tab 2 does not exist. When the hotkey is triggered, the action tries to display tab 2 if it exists, otherwise nothing. Hotkeys are only modified when the hotkeys (and not the command) is modified.

We can validate this pr which will correct the problem immediately (I have not tested it).

@QuaintMako
Copy link
Contributor Author

Does not longer fix the issue. See #2145.

@QuaintMako QuaintMako closed this Dec 11, 2022
@QuaintMako QuaintMako deleted the 2145_CrashTabsAccelerator branch January 3, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: App crashes when opening a lot of tabs
4 participants