@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user