Fixed double click issue when initially one selected

This commit is contained in:
itdominator 2022-12-06 16:05:06 -06:00
parent b488c989b2
commit a9ab9e95d8
3 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,6 @@
# Python imports # Python imports
import builtins, threading import builtins
import threading
# Lib imports # Lib imports

View File

@ -127,6 +127,7 @@ class FileActionSignalsMixin:
def open_files(self): def open_files(self):
state = self.get_current_state() state = self.get_current_state()
uris = self.format_to_uris(state.store, state.wid, state.tid, self.selected_files, True) uris = self.format_to_uris(state.store, state.wid, state.tid, self.selected_files, True)
for file in uris: for file in uris:
state.tab.open_file_locally(file) state.tab.open_file_locally(file)

View File

@ -171,15 +171,12 @@ class WindowMixin(TabMixin):
if self.dnd_left_primed > 1: if self.dnd_left_primed > 1:
self.dnd_left_primed = 0 self.dnd_left_primed = 0
self.selected_files.clear() self.selected_files.clear()
return
# NOTE: Likely trying dnd, just readd to selection the former set. # NOTE: Likely trying dnd, just readd to selection the former set.
# Prevents losing highlighting of grid selected. # Prevents losing highlighting of grid selected.
for path in self.selected_files: for path in self.selected_files:
icons_grid.select_path(path) icons_grid.select_path(path)
return
if size > 0: if size > 0:
self.selected_files = icons_grid.get_selected_items() self.selected_files = icons_grid.get_selected_items()
else: else: