mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
parent
3ef4d0d798
commit
3978137534
9 changed files with 681 additions and 38 deletions
|
@ -655,6 +655,32 @@ void Preferences::setSearchEnabled(const bool enabled)
|
|||
setValue(u"Preferences/Search/SearchEnabled"_s, enabled);
|
||||
}
|
||||
|
||||
bool Preferences::storeOpenedSearchTabs() const
|
||||
{
|
||||
return value(u"Search/StoreOpenedSearchTabs"_s, false);
|
||||
}
|
||||
|
||||
void Preferences::setStoreOpenedSearchTabs(const bool enabled)
|
||||
{
|
||||
if (enabled == storeOpenedSearchTabs())
|
||||
return;
|
||||
|
||||
setValue(u"Search/StoreOpenedSearchTabs"_s, enabled);
|
||||
}
|
||||
|
||||
bool Preferences::storeOpenedSearchTabResults() const
|
||||
{
|
||||
return value(u"Search/StoreOpenedSearchTabResults"_s, false);
|
||||
}
|
||||
|
||||
void Preferences::setStoreOpenedSearchTabResults(const bool enabled)
|
||||
{
|
||||
if (enabled == storeOpenedSearchTabResults())
|
||||
return;
|
||||
|
||||
setValue(u"Search/StoreOpenedSearchTabResults"_s, enabled);
|
||||
}
|
||||
|
||||
bool Preferences::isWebUIEnabled() const
|
||||
{
|
||||
#ifdef DISABLE_GUI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue