Fixed “Go to folder” button not opening the chapter output directory when only separate chapters were generated

This commit is contained in:
Deniz Şafak
2025-10-20 03:51:27 +03:00
parent 4adda262c0
commit 4a28bfb859
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -6,6 +6,7 @@
- Fixed `/` and `\` path display by normalizing paths. - Fixed `/` and `\` path display by normalizing paths.
- Fixed book reprocessing issue where books were being processed every time the chapters window was opened, improving performance when reopening the same book. - Fixed book reprocessing issue where books were being processed every time the chapters window was opened, improving performance when reopening the same book.
- Fixed taskbar icon not appearing correctly in Windows. - Fixed taskbar icon not appearing correctly in Windows.
- Fixed “Go to folder” button not opening the chapter output directory when only separate chapters were generated.
- Improvements in code and documentation. - Improvements in code and documentation.
# 1.1.9 # 1.1.9
+4 -3
View File
@@ -1117,11 +1117,12 @@ class ConversionThread(QThread):
merged_out_path, merged_out_path,
) )
else: else:
# If not merging, just finish after chapters # If not merging, report the folder that holds the chapter files
self.progress_updated.emit(100, "00:00:00") self.progress_updated.emit(100, "00:00:00")
chapters_dir = os.path.abspath(chapters_out_dir or parent_dir)
self.conversion_finished.emit( self.conversion_finished.emit(
("\nAll chapters saved.", "green"), (f"\nAll chapters saved to: {chapters_dir}", "green"),
None, chapters_dir,
) )
except Exception as e: except Exception as e:
# Cleanup ffmpeg subprocesses on error # Cleanup ffmpeg subprocesses on error