mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Fix hide zero values
This commit is contained in:
parent
c3ce1aaa3d
commit
099943ea3c
1 changed files with 2 additions and 2 deletions
|
@ -205,8 +205,8 @@ QVariant TransferListModel::headerData(int section, Qt::Orientation orientation,
|
||||||
|
|
||||||
QString TransferListModel::displayValue(const BitTorrent::TorrentHandle *torrent, const int column) const
|
QString TransferListModel::displayValue(const BitTorrent::TorrentHandle *torrent, const int column) const
|
||||||
{
|
{
|
||||||
const bool isHideState = (Preferences::instance()->getHideZeroComboValues() == 1)
|
const bool isHideState = (Preferences::instance()->getHideZeroComboValues() == 0)
|
||||||
&& (torrent->state() == BitTorrent::TorrentState::PausedDownloading); // paused torrents only
|
|| (torrent->state() == BitTorrent::TorrentState::PausedDownloading); // paused torrents only
|
||||||
const bool hideValues = Preferences::instance()->getHideZeroValues() && isHideState;
|
const bool hideValues = Preferences::instance()->getHideZeroValues() && isHideState;
|
||||||
|
|
||||||
const auto availabilityString = [hideValues](const qreal value) -> QString
|
const auto availabilityString = [hideValues](const qreal value) -> QString
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue