Draft PR: Recently opened files; And opening repeat file dialogs in same directory #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It's not done, though as said in title, I tried adding a menu option in File, just below Open File, like this, where Recently Opened should be a dropdown like in VS Code's and others Open Recent options, but haven't programmed in qt, tried but didnt find much help in qt docs:
Also the
xdg
dependency isn't needed, either we can do:BaseDirectory.save_cache_path("device-tree-visualiser")
I will just leave it here, you may just close it. Though have a look at adi-g15@1025c8c, it's mergeable too, for eg. if I opened a dts file from "/home/adityag/os_projects/rpi_linux/arch/arm64/boot/dts/broadcom", and using Open File option once more, I think it's more convenient for the application to open in the same dir, so I may decide to go up a directory maybe or chose another in same dir, but easier than going again.
Just my view, I forked already. Thanks a lot for the application, it helped me in learning and seeing some dts myself (visually much better) 👍