mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 18:56:08 +03:00
Simplify if
statement
This commit is contained in:
parent
086588eeed
commit
a25a15d1c6
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue