Skip to content

Commit

Permalink
Trim whitespace from input paths in config setup
Browse files Browse the repository at this point in the history
Removed leading and trailing whitespace from user input paths to prevent potential errors caused by unintended spaces.
  • Loading branch information
cbusillo committed Jun 30, 2024
1 parent 151bdf3 commit 493b473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bd_to_avp/gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,11 @@ def save_config(self) -> None:
config.source_path = None
else:
config.source_folder_path = (
Path(self.source_folder_widget.text()) if self.source_folder_widget.text() else None
Path(self.source_folder_widget.text().strip()) if self.source_folder_widget.text() else None
)
config.source_path = Path(self.source_file_widget.text()) if self.source_file_widget.text() else None
config.source_path = Path(self.source_file_widget.text().strip()) if self.source_file_widget.text() else None

config.output_root_path = Path(self.output_folder_widget.text())
config.output_root_path = Path(self.output_folder_widget.text().strip())
config.audio_bitrate = self.audio_bitrate_spinbox.value()
config.mv_hevc_quality = self.mv_hevc_quality_spinbox.value()
config.fov = self.fov_spinbox.value()
Expand Down

0 comments on commit 493b473

Please sign in to comment.