Added Linux, MacOS, and Windows support for Tor Browser. (#2387)

Add path for native-messaging-hosts on Linux, Windows, and macOS for Tor Browser
This commit is contained in:
hidden by cloudflare 2018-10-30 08:07:59 -07:00 committed by Jonathan White
parent 5bf4f51389
commit 2ad8036823
7 changed files with 60 additions and 36 deletions

View file

@ -228,6 +228,17 @@ void BrowserSettings::setVivaldiSupport(bool enabled)
HostInstaller::SupportedBrowsers::VIVALDI, enabled, supportBrowserProxy(), customProxyLocation());
}
bool BrowserSettings::torBrowserSupport()
{
return m_hostInstaller.checkIfInstalled(HostInstaller::SupportedBrowsers::TOR_BROWSER);
}
void BrowserSettings::setTorBrowserSupport(bool enabled)
{
m_hostInstaller.installBrowser(
HostInstaller::SupportedBrowsers::TOR_BROWSER, enabled, supportBrowserProxy(), customProxyLocation());
}
bool BrowserSettings::passwordUseNumbers()
{
return config()->get("generator/Numbers", PasswordGenerator::DefaultNumbers).toBool();