-
-
Notifications
You must be signed in to change notification settings - Fork 368
Initialize HotKeyMapper after window is loaded & Wait image cache saved before closing main window #3422
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
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
📝 WalkthroughWalkthroughThis pull request modifies the timing of hotkey initialization and improves the application shutdown process. The hotkey initialization is removed from the App’s startup sequence and moved to the MainWindow’s load event. Additionally, an asynchronous call for image saving is introduced in the MainWindow’s closing sequence to ensure that image-related tasks complete before disposing of plugins and uninstalling notifications. There are no changes to the public interface declarations. Changes
Sequence Diagram(s)sequenceDiagram
participant App as Application
participant MW as MainWindow
participant HKM as HotKeyMapper
App->>MW: Startup
Note right of MW: OnLoaded event triggers
MW->>HKM: Initialize hotkeys
sequenceDiagram
participant MW as MainWindow
participant IL as ImageLoader
participant PM as PluginManager
MW->>IL: WaitSaveAsync()
IL-->>MW: Save Complete
MW->>PM: Dispose plugins & uninstall notifications
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (2)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Head branch was modified
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.
See ❌ Event descriptions for more information. Forbidden patterns 🙅 (1)In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves. These forbidden patterns matched content: s.b. workaround(s)
If the flagged items are 🤯 false positivesIf items relate to a ...
|
🥷 Code experts: no user but you matched threshold 10 Jack251970 has most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame: To learn more about /:\ gitStream - Visit our Docs |
Initialize
HotKeyMapper
after window is loadedInitialize hotkey after main window is loaded because when main window is loading, it will change main window visibility state which can possibly cause conflict when hotkey operation like toggling main window visibility.
Wait image cache saved before closing main window
When we close FL, we should wait cache saved before closing app.