Skip to content

Commit df99aee

Browse files
philipstarkeyrpanderson
authored andcommitted
Incorrect behaviour of default output directory on first run
Fixes #71
1 parent b007f3e commit df99aee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

runmanager/__main__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,8 +1711,6 @@ def on_select_labscript_file_clicked(self, checked):
17111711
self.last_opened_labscript_folder = os.path.dirname(labscript_file)
17121712
# Write the file to the lineEdit:
17131713
self.ui.lineEdit_labscript_file.setText(labscript_file)
1714-
# Check if the output folder needs to be updated:
1715-
self.check_output_folder_update()
17161714

17171715
def on_edit_labscript_file_clicked(self, checked):
17181716
# get path to text editor
@@ -1772,7 +1770,8 @@ def on_labscript_file_text_changed(self, text):
17721770
# file is selected:
17731771
self.ui.toolButton_select_shot_output_folder.setEnabled(enabled)
17741772
self.ui.lineEdit_labscript_file.setToolTip(text)
1775-
self.previous_default_output_folder = self.get_default_output_folder()
1773+
# Check if the output folder needs to be updated:
1774+
self.check_output_folder_update()
17761775

17771776
def on_shot_output_folder_text_changed(self, text):
17781777
# Blank out the 'reset default output folder' button if the user is

0 commit comments

Comments
 (0)