Skip to content

[applets/devicenotifier] Prevent empty or duplicated actions in expanded view

ivan tkachenko requested to merge work/ratijas/devices/empty-actions into master

Unfortunately, the list<> basic QML type is too primitive, it does not even expose any kind of remove() functionality, so the only supported way is to create a new list and assign it instead.

This fixes the bug when there may appear multiple empty or duplicating actions in the expanded view due to the fact they they were only added to but never cleaned up / removed from the list of contextual actions.

Before:

Disks___Devices_-_duplicated___empty_actions-_Empty_actions

After: normal list of meaningful actions.

How to trigger the bug: repeatedly connect & disconnect, mount & unmount, or just reformat a drive.

BUG: 449778

Edited by ivan tkachenko

Merge request reports

Loading