Add recently used files option to g UI
Description of work Add an option in the GUI to open recently used files. The File menu will have a new section. There will be a way to select a recently opened trajectory file, which will then be opened in the trajectory tab. There will be a way to select a recently opened results file (.mda), which will then be opened in the plot creator tab.
I have two comments for now:
- Please rebase your branch to make sure that all the recent changes to
protosbranch have been included and merge conflicts resolved. - Could you make the saving process more selective, so it stores the trajectory as recently used only if it had been loaded successfully?
I have included the changes you suggested including rebase.
Sorry for not writing it explicitly before: do you think you could also make the .mda files appear on the list only if they were loaded successfully?
On my computer, if the list of recently used files was empty on GUI startup, the items in the recently used file menu would not appear, even though new file names had been added to the JSON files. The second time I ran the GUI everything was fine and the list of recently used files would be updated every time I loaded a file. I did not find the reason for it, so I just added an placeholder item to make sure that the list is never empty, and this worked around the problem.