mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Enable faster disk space allocation by default
In libtorrent > 2.0, the setting is turned off by default, now we just re-enable it to preserve the behavior as in earlier versions.
This commit is contained in:
parent
c967bf31ff
commit
01603c1f62
@ -1042,6 +1042,11 @@ void Session::initializeNativeSession()
|
|||||||
pack.set_bool(lt::settings_pack::upnp_ignore_nonrouters, true);
|
pack.set_bool(lt::settings_pack::upnp_ignore_nonrouters, true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (LIBTORRENT_VERSION_NUM > 20000)
|
||||||
|
// preserve the same behavior as in earlier libtorrent versions
|
||||||
|
pack.set_bool(lt::settings_pack::enable_set_file_valid_data, true);
|
||||||
|
#endif
|
||||||
|
|
||||||
loadLTSettings(pack);
|
loadLTSettings(pack);
|
||||||
m_nativeSession = new lt::session {pack, lt::session_flags_t {0}};
|
m_nativeSession = new lt::session {pack, lt::session_flags_t {0}};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user