Implement dynamic Always on Top option - #30
Conversation
- Added set_always_on_top(self, enabled) to PetWindow to toggle Qt.WindowStaysOnTopHint dynamically. - Integrated "Always on Top" checkbox in SettingsDialog. - Dynamically update always_on_top state in TrayMenu upon settings save. - Added test_pet_window_always_on_top unit test to verify flag changes. - Maintained backward compatibility by defaulting always_on_top to True.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
We added support for dynamically toggling the "Always on Top" (Qt.WindowStaysOnTopHint) window setting for the desktop pet. The setting is stored in config, configurable via the Settings Dialog, and applied immediately without requiring a restart. Robust unit tests have been added to verify that window flags transition correctly under dynamic always_on_top changes, and the whole test suite runs successfully.
PR created automatically by Jules for task 14242585659351554672 started by @mx57