Don't ignore SSL errors

This commit is contained in:
sledgehammer999 2024-09-19 21:10:16 +03:00
parent 1c43286616
commit 6981217369
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
7 changed files with 54 additions and 6 deletions

View file

@ -1330,6 +1330,19 @@ void Preferences::setMarkOfTheWebEnabled(const bool enabled)
setValue(u"Preferences/Advanced/markOfTheWeb"_s, enabled);
}
bool Preferences::isIgnoreSSLErrors() const
{
return value(u"Preferences/Advanced/IgnoreSSLErrors"_s, false);
}
void Preferences::setIgnoreSSLErrors(const bool enabled)
{
if (enabled == isIgnoreSSLErrors())
return;
setValue(u"Preferences/Advanced/IgnoreSSLErrors"_s, enabled);
}
Path Preferences::getPythonExecutablePath() const
{
return value(u"Preferences/Search/pythonExecutablePath"_s, Path());