diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-05-24 07:53:33 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-05-24 07:54:32 +0200 |
commit | 1026360c595818eabe75813bcd02258c4d0dddc7 (patch) | |
tree | 2d1c9877c695c53942247aafed99a086be2387a4 /plugins | |
parent | 318d230c19954c8dade052b05a9e23d5d2c53e7e (diff) |
Save the last accessed file manager directory and use that the next time. Add ctrl+s for 4chan without viewing the image/video in fullscreen mode
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/FileManager.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/FileManager.hpp b/plugins/FileManager.hpp index e452c40..4e36b3c 100644 --- a/plugins/FileManager.hpp +++ b/plugins/FileManager.hpp @@ -27,6 +27,9 @@ namespace QuickMedia { bool set_current_directory(const std::string &path); const std::filesystem::path& get_current_directory() const { return current_dir; } PluginResult get_files_in_directory(BodyItems &result_items); + + // |fallback| is used if no directory has been accessed + static std::filesystem::path& get_last_accessed_directory(std::filesystem::path &fallback); private: std::filesystem::path current_dir; FileManagerMimeType mime_type; |