mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Use new libtorrent-1.1 settings API
This commit is contained in:
parent
b2cb473b63
commit
b5fe749f0b
12 changed files with 536 additions and 286 deletions
|
@ -373,17 +373,6 @@ void Preferences::setActionOnDblClOnTorrentFn(int act)
|
|||
setValue("Preferences/Downloads/DblClOnTorFn", act);
|
||||
}
|
||||
|
||||
// Connection options
|
||||
bool Preferences::isUPnPEnabled() const
|
||||
{
|
||||
return value("Preferences/Connection/UPnP", true).toBool();
|
||||
}
|
||||
|
||||
void Preferences::setUPnPEnabled(bool enabled)
|
||||
{
|
||||
setValue("Preferences/Connection/UPnP", enabled);
|
||||
}
|
||||
|
||||
QTime Preferences::getSchedulerStartTime() const
|
||||
{
|
||||
return value("Preferences/Scheduler/start_time", QTime(8,0)).toTime();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue