legacy-applet: fix item deletion

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>