feat(file-explorer): add file selection on double-click

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-07-01 11:48:28 +05:00
parent be9ecf5db6
commit 3d87718072

View File

@ -227,6 +227,10 @@ class FileExplorer(QDialog):
# Открываем директорию
self.current_path = os.path.normpath(full_path)
self.update_file_list()
elif not self.directory_only:
# Выбираем файл, если directory_only=False
self.file_signal.file_selected.emit(os.path.normpath(full_path))
self.accept()
else:
logger.debug("Double-clicked item is not a directory, ignoring: %s", full_path)
except Exception as e: