From 95f790a7a49152f2a477cac9222b4ce5e0a6c416 Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Sat, 26 Nov 2022 16:06:39 -0600 Subject: [PATCH] Fix ctrl+a and box select all l-click dnd --- .../SolarFM/solarfm/core/mixins/ui/window_mixin.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/versions/solarfm-0.0.1/SolarFM/solarfm/core/mixins/ui/window_mixin.py b/src/versions/solarfm-0.0.1/SolarFM/solarfm/core/mixins/ui/window_mixin.py index 503cdd8..af76f29 100644 --- a/src/versions/solarfm-0.0.1/SolarFM/solarfm/core/mixins/ui/window_mixin.py +++ b/src/versions/solarfm-0.0.1/SolarFM/solarfm/core/mixins/ui/window_mixin.py @@ -158,9 +158,6 @@ class WindowMixin(TabMixin): tab = self.get_fm_window(wid).get_tab_by_id(tid) path_entry.set_text(tab.get_current_directory()) - # NOTE: If selected multiple with box select and then reselecting the same - # with box select, self.dnd_left_primed does not get deprimed if already primed. - # Ctrl does help in this context but the abocve is not desired def grid_set_selected_items(self, icons_grid): items = icons_grid.get_selected_items() size = len(items) @@ -182,7 +179,11 @@ class WindowMixin(TabMixin): return - self.selected_files = icons_grid.get_selected_items() + if size > 0: + self.selected_files = icons_grid.get_selected_items() + else: + self.dnd_left_primed = 0 + self.selected_files.clear() def grid_icon_single_click(self, icons_grid, eve): try: