Skip to content

Move all actions to be per window#103

Merged
tfuxu merged 5 commits intotfuxu:mainfrom
AlexanderVanhee:window-based-actions
Aug 24, 2025
Merged

Move all actions to be per window#103
tfuxu merged 5 commits intotfuxu:mainfrom
AlexanderVanhee:window-based-actions

Conversation

@AlexanderVanhee
Copy link
Copy Markdown
Contributor

Having actions be per window greatly simplifies supporting multiple windows. Which is wanted for #96.

I know some apps have their "About" dialog per application instead, but I don’t see any reason to prevent multiple windows from showing that dialog. I suspect this is an anachronism from the time when these dialogs were proper non-modal windows.

AlexanderVanhee and others added 5 commits August 24, 2025 15:00
- [`_on_external_launch_result`] when receiving an exception, send the traceback to the `latest_traceback` store
- improve readability of the `create_action` helper
There already exist `window.close` action by default, so I just set a `<Primary>W` shortcut for it, and for `app.quit`, I set `<Primary>Q` as recommended by GNOME HIG.
Other changes:
- remove the shortcut for the `win.about` action (it's reserved for the shortcuts window)
- [halftone/main] remove unused libraries
@tfuxu
Copy link
Copy Markdown
Owner

tfuxu commented Aug 24, 2025

Thanks! This should make #96 much easier to implement now.

@tfuxu tfuxu merged commit 3b88426 into tfuxu:main Aug 24, 2025
2 checks passed
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.

2 participants