mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Simplify if statement
This commit is contained in:
committed by
sledgehammer999
parent
086588eeed
commit
a25a15d1c6
@@ -194,7 +194,7 @@ void PropertiesWidget::showPiecesAvailability(bool show)
|
||||
avail_pieces_lbl->setVisible(show);
|
||||
pieces_availability->setVisible(show);
|
||||
avail_average_lbl->setVisible(show);
|
||||
if (show || (!show && !downloaded_pieces->isVisible()))
|
||||
if (show || !downloaded_pieces->isVisible())
|
||||
line_2->setVisible(show);
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ void PropertiesWidget::showPiecesDownloaded(bool show)
|
||||
downloaded_pieces_lbl->setVisible(show);
|
||||
downloaded_pieces->setVisible(show);
|
||||
progress_lbl->setVisible(show);
|
||||
if (show || (!show && !pieces_availability->isVisible()))
|
||||
if (show || !pieces_availability->isVisible())
|
||||
line_2->setVisible(show);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user