mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Expose 'max torrent file size' setting
This commit is contained in:
parent
fff7b1dcbd
commit
66dfe8545d
11 changed files with 55 additions and 12 deletions
|
@ -304,6 +304,19 @@ void Preferences::setIconsInMenusEnabled(const bool enable)
|
|||
}
|
||||
#endif // Q_OS_MACOS
|
||||
|
||||
qint64 Preferences::getTorrentFileSizeLimit() const
|
||||
{
|
||||
return value(u"BitTorrent/TorrentFileSizeLimit"_s, (100 * 1024 * 1024));
|
||||
}
|
||||
|
||||
void Preferences::setTorrentFileSizeLimit(const qint64 value)
|
||||
{
|
||||
if (value == getTorrentFileSizeLimit())
|
||||
return;
|
||||
|
||||
setValue(u"BitTorrent/TorrentFileSizeLimit"_s, value);
|
||||
}
|
||||
|
||||
bool Preferences::isToolbarDisplayed() const
|
||||
{
|
||||
return value(u"Preferences/General/ToolbarDisplayed"_s, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue