From 033ac70c8ae5face336ddd0d42c00e4eee3ee70f Mon Sep 17 00:00:00 2001 From: DYefremov Date: Sun, 22 Feb 2026 19:19:38 +0300 Subject: [PATCH] minor adjustment of favorites remove --- app/ui/main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/ui/main.py b/app/ui/main.py index aaf38d02..217cd4de 100644 --- a/app/ui/main.py +++ b/app/ui/main.py @@ -1511,15 +1511,14 @@ class Application(Gtk.Application): removed = [] for index, itr in enumerate(itrs): path = model.get_path(itr) - row = tuple(model[path]) p_index = int(path[0]) + removed.append((p_index, tuple(model[path]))) del fav_bouquet[p_index] - - if self._fav_model.remove(itr): - removed.append((index, row)) + self._fav_model.remove(itr) if index % self.DEL_FACTOR == 0: yield True + self.update_fav_num_column(model) self.emit("fav-removed", removed)