Skip to content

Commit

Permalink
Fix settings location problem
Browse files Browse the repository at this point in the history
  • Loading branch information
s-du committed Jul 11, 2023
1 parent 89cd57a commit fca86f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions gui/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ def create_connections(self):
self.pushButton_advanced.clicked.connect(self.define_options)
self.pushButton_left.clicked.connect(lambda: self.update_img_to_preview('minus'))
self.pushButton_right.clicked.connect(lambda: self.update_img_to_preview('plus'))

# Dropdowns
self.comboBox.currentIndexChanged.connect(self.update_img_preview)
self.comboBox_colors_low.currentIndexChanged.connect(self.update_img_preview)
Expand Down
2 changes: 1 addition & 1 deletion gui/thermalmesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(self, parent=None):
settings_dir = platformdirs.user_config_dir('IRMapper')
print(f"User config files should be stored in {platformdirs.user_config_dir('IRMapper')}")
if not os.path.exists(settings_dir):
os.mkdir(settings_dir)
os.makedirs(settings_dir)

self.license_loc = os.path.join(settings_dir, 'license_location.txt') # TODO : use settings.json

Expand Down

0 comments on commit fca86f7

Please sign in to comment.