Fixed / and \ path display by normalizing paths

This commit is contained in:
Deniz Şafak
2025-10-19 16:02:36 +03:00
parent d426bac87e
commit 1520b971ac
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -308,6 +308,10 @@ class ConversionThread(QThread):
input_file = self.display_path if self.display_path else self.file_name input_file = self.display_path if self.display_path else self.file_name
processing_file = self.file_name processing_file = self.file_name
# Normalize paths for consistent display (fixes Windows path separator issues)
input_file = os.path.normpath(input_file) if input_file else input_file
processing_file = os.path.normpath(processing_file) if processing_file else processing_file
self.log_updated.emit(f"- Input File: {input_file}") self.log_updated.emit(f"- Input File: {input_file}")
if input_file != processing_file: if input_file != processing_file:
self.log_updated.emit(f"- Processing File: {processing_file}") self.log_updated.emit(f"- Processing File: {processing_file}")
+4
View File
@@ -221,6 +221,10 @@ class QueueManager(QDialog):
display_file_path = getattr(item, "save_base_path", None) or item.file_name display_file_path = getattr(item, "save_base_path", None) or item.file_name
processing_file_path = item.file_name processing_file_path = item.file_name
# Normalize paths for consistent display (fixes Windows path separator issues)
display_file_path = os.path.normpath(display_file_path) if display_file_path else display_file_path
processing_file_path = os.path.normpath(processing_file_path) if processing_file_path else processing_file_path
# Only show the file name, not the full path # Only show the file name, not the full path
display_name = display_file_path display_name = display_file_path
import os import os