[BUG] “Collection Sync Complete” Popup Stays On Top of Other Applications
Description: When performing a sync in recent versions of Anki, a popup message appears stating “Collection Sync complete.” However, if I switch to another application while this message is displayed, the popup remains visible and floats above other application windows, rather than staying within the Anki window or dismissing itself. This behavior is distracting and not consistent with standard UI practices.
Originally reported on https://forums.ankiweb.net/t/bug-collection-sync-complete-popup-stays-on-top-of-other-applications/63680
We may end up addressing this as we get more of the UI in Svelte, as we could overlay a pop-up over the page instead of in a separate window.
Hey, think this will work util more UI is moved to Svelte.
Would this be sufficient @dae ?
For now, how can I disable this notification completely?
There is no setting you can change to turn this off. Disabling it would mean removing it from the source code.
@e-hamrin If you're interested in looking into it, a better general solution might be to add a check for aqt.mw.windowState() == Qt.WindowState.WindowMinimized to tooltip().
@e-hamrin If you're interested in looking into it, a better general solution might be to add a check for
aqt.mw.windowState() == Qt.WindowState.WindowMinimizedtotooltip().
Thanks @abdnh, bit short on time at the moment, but will look into it!
would it be relevant to use aqt.mw.windowState() == aqt.mw.isActiveWindow() ? if so i have time to implement this, if you don't have time @e-hamrin?
@JMannervik Feel free to look at it, probably need some testing to figure out the Qt states that are relevant. Let me know if you need any help.
i made a PR with a fix for this with the suggested check, would appreciate any feedback if there is any!