From 3d877180729fd12e859c98d55cdde4762c9b9abd Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Tue, 1 Jul 2025 11:48:28 +0500 Subject: [PATCH] feat(file-explorer): add file selection on double-click Signed-off-by: Boris Yumankulov --- portprotonqt/dialogs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/portprotonqt/dialogs.py b/portprotonqt/dialogs.py index bf31312..32acf5f 100644 --- a/portprotonqt/dialogs.py +++ b/portprotonqt/dialogs.py @@ -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: