NautilusProgressIndicator widgets fire double notification after file operation
Affected version
- Nightly flatpak: Yes (commit 580df926)
- Other: Nautilus 44.2.1, Arch Linux
Steps to reproduce
- Copy a file from one drive to the other. File size should be big enough for the operation to last at least some seconds and show a popup toast at the end of the operation "Copied XX to YY"
Current behavior
Two popup toast notifications are shown one after the other, like shown in following video:
Screencast_from_2023-08-14_12-20-46
Expected behavior
Only one popup toast notification is shown
Additional information
In Nautilus UI layout there are two NautilusProgressIndicator
widgets, one in nautilus-toolbar.ui and the other one in nautilus-window.ui under the action bar widget. Only one widget is shown at a given time depending on the window size:
- If windows width is greater than 500, file progress indicator is show at the top
- If windows width is lower than 500, an action bar at the bottom will appear and progress indicator is shown there
Both widgets gets initialized startup and are active, regardless of windows size, so both will connect to the started
signal when a new NautilusProgressInfo
is created. This results in both NautilusProgressIndicator
reacting to the finished
signal of each NautilusProgressInfo
object: the on_progress_info_finished
callback is called twice (once per NautilusProgressIndicator
instance) and two toast notifications are displayed.