Skip to content

Commit

Permalink
Ensure that files containing '=' are not stored in settings
Browse files Browse the repository at this point in the history
These cannot be parsed by the standard parser
  • Loading branch information
rayosborn committed Apr 12, 2024
1 parent 52e5666 commit c1c4a70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/nexpy/gui/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,10 @@ def update_files(self, filename, recent=True):
self.recent_file_actions[action] = (i, recent_file)
self.settings.purge('recent')
for recent_file in recent_files:
self.settings.set('recent', recent_file)
self.settings.set('session', filename)
if "=" not in recent_file:
self.settings.set('recent', recent_file)
if "=" not in filename:
self.settings.set('session', filename)
self.settings.save()

def save_file(self):
Expand Down

0 comments on commit c1c4a70

Please sign in to comment.