Skip to content

Commit

Permalink
fixed appstate saving of history
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene Schallner committed May 13, 2018
1 parent aac3bdc commit 71cd9ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/appstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def load(self):
if not self.recent_projects:
self.recent_projects = [self.get_default_project_folder()]
self.open_notes = json_dict.get('open_notes', {})
self.recently_viewed = json_dict.get('viewed', {})
self.recently_viewed = json_dict.get('accessed', {})
self.save()

def save(self):
json_dict = {'recent_projects': self.recent_projects, 'open_notes': self.open_notes}
json_dict = {'recent_projects': self.recent_projects, 'open_notes': self.open_notes, 'accessed': self.recently_viewed}
with open(self.file_name, mode='w', encoding='utf-8', errors='ignore') as f:
f.write(json.dumps(json_dict))

Expand Down

0 comments on commit 71cd9ef

Please sign in to comment.