anki icon indicating copy to clipboard operation
anki copied to clipboard

[BUG] “Collection Sync Complete” Popup Stays On Top of Other Applications

Open dae opened this issue 5 months ago • 8 comments

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.

dae avatar Jul 08 '25 11:07 dae

Hey, think this will work util more UI is moved to Svelte.

Would this be sufficient @dae ?

e-hamrin/anki#f900cf093d258fe77cfaadf3dd0565b603265e87

e-hamrin avatar Sep 12 '25 11:09 e-hamrin

For now, how can I disable this notification completely?

Geniusssmit avatar Sep 13 '25 02:09 Geniusssmit

There is no setting you can change to turn this off. Disabling it would mean removing it from the source code.

e-hamrin avatar Sep 15 '25 06:09 e-hamrin

@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().

abdnh avatar Sep 25 '25 06:09 abdnh

@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().

Thanks @abdnh, bit short on time at the moment, but will look into it!

e-hamrin avatar Sep 30 '25 14:09 e-hamrin

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 avatar Oct 10 '25 09:10 JMannervik

@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.

e-hamrin avatar Oct 13 '25 08:10 e-hamrin

i made a PR with a fix for this with the suggested check, would appreciate any feedback if there is any!

JMannervik avatar Nov 03 '25 16:11 JMannervik