mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +00:00
Simplify if
statement
This commit is contained in:
parent
a372d22fb2
commit
36901295b2
@ -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…
x
Reference in New Issue
Block a user