Custom browser feature for Linux/macOS

* Also move "search in all databases" to the general tab
This commit is contained in:
varjolintu 2020-05-17 22:44:52 +03:00 committed by Jonathan White
parent d863496f62
commit 43c82ccb09
9 changed files with 378 additions and 79 deletions

View file

@ -182,6 +182,36 @@ void BrowserSettings::setCustomProxyLocation(const QString& location)
config()->set(Config::Browser_CustomProxyLocation, location);
}
bool BrowserSettings::customBrowserSupport()
{
return config()->get(Config::Browser_UseCustomBrowser).toBool();
}
void BrowserSettings::setCustomBrowserSupport(bool enabled)
{
config()->set(Config::Browser_UseCustomBrowser, enabled);
}
int BrowserSettings::customBrowserType()
{
return config()->get(Config::Browser_CustomBrowserType).toInt();
}
void BrowserSettings::setCustomBrowserType(int type)
{
config()->set(Config::Browser_CustomBrowserType, type);
}
QString BrowserSettings::customBrowserLocation()
{
return config()->get(Config::Browser_CustomBrowserLocation).toString();
}
void BrowserSettings::setCustomBrowserLocation(const QString& location)
{
config()->set(Config::Browser_CustomBrowserLocation, location);
}
QString BrowserSettings::proxyLocation()
{
return m_nativeMessageInstaller.getProxyPath();