| 688 | static const std::string cLastUsedDirKey = "lastUsedDir"; |
| 689 | |
| 690 | std::filesystem::path getLastUsedDir() |
| 691 | { |
| 692 | auto& cfg = Config::instance(); |
| 693 | if ( cfg.hasJsonValue( cLastUsedDirKey ) ) |
| 694 | { |
| 695 | auto lastUsedDir = cfg.getJsonValue( cLastUsedDirKey ); |
| 696 | if ( lastUsedDir.isString() ) |
| 697 | return pathFromUtf8( lastUsedDir.asString() ); |
| 698 | } |
| 699 | return {}; |
| 700 | } |
| 701 | |
| 702 | void setLastUsedDir( const std::filesystem::path& folder ) |
| 703 | { |
no test coverage detected