logic: save last filepicker location (issue #802) (#1024)

This commit is contained in:
miltolstoy
2020-06-08 11:24:38 +02:00
committed by GitHub
parent e7fc3d205d
commit 0da704eabe
4 changed files with 38 additions and 8 deletions
+10
View File
@@ -668,6 +668,16 @@ void ApplicationSettings::setSeenErrorHelpMessage(bool seen)
setValue<bool>("user/seen_error_help_message", seen);
}
FilePath ApplicationSettings::getLastFilepickerLocation() const
{
return FilePath(getValue<std::wstring>("user/last_filepicker_location", L""));
}
void ApplicationSettings::setLastFilepickerLocation(const FilePath& path)
{
setValue<std::wstring>("user/last_filepicker_location", path.wstr());
}
int ApplicationSettings::getPluginPort() const
{
return getValue<int>("network/plugin_port", 6666);
+3
View File
@@ -178,6 +178,9 @@ public:
bool getSeenErrorHelpMessage() const;
void setSeenErrorHelpMessage(bool seen);
FilePath getLastFilepickerLocation() const;
void setLastFilepickerLocation(const FilePath& path);
// network
int getPluginPort() const;
void setPluginPort(const int pluginPort);