Skip to content

Commit

Permalink
fix autosave batch prefix interaction (regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO committed Dec 21, 2022
1 parent d559cf7 commit 7deb259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/artisanlib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31026,9 +31026,9 @@ def fileSave(self,fname,copy=False):
if not filename:
path = QDir()
path.setPath(self.getDefaultPath())
if aw.qmc.batchcounter > -1 and aw.qmc.roastbatchnr > 0:
if aw.qmc.batchcounter > -1 and aw.qmc.roastbatchnr > 0 and self.qmc.autosaveprefix == '':
prefix = aw.qmc.batchprefix + str(aw.qmc.roastbatchnr)
elif aw.qmc.roastbatchprefix != '':
elif aw.qmc.roastbatchprefix != '' and self.qmc.autosaveprefix == '':
prefix = aw.qmc.roastbatchprefix
else:
prefix = self.qmc.autosaveprefix
Expand Down

0 comments on commit 7deb259

Please sign in to comment.