Skip to content

Commit

Permalink
Merge pull request #58 from ch-sa/ch-sa/fix-path
Browse files Browse the repository at this point in the history
Set label_folder as Path on change
  • Loading branch information
ch-sa authored Jan 24, 2022
2 parents 0307277 + fba46b3 commit 7d9f0d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions labelCloud/view/settings_dialog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import logging
from pathlib import Path

import pkg_resources
from PyQt5 import uic
from PyQt5.QtWidgets import QDialog
Expand Down Expand Up @@ -169,10 +171,10 @@ def save(self) -> None:
)

config_manager.write_into_file()
self.parent_gui.set_checkbox_states() #
self.parent_gui.set_checkbox_states()
self.parent_gui.controller.pcd_manager.label_manager = LabelManager(
strategy=config["LABEL"]["label_format"],
path_to_label_folder=config["FILE"]["label_folder"],
path_to_label_folder=Path(config["FILE"]["label_folder"]),
)
logging.info("Saved and activated new configuration!")

Expand Down

0 comments on commit 7d9f0d1

Please sign in to comment.