Apply readability-simplify-boolean-expr
This commit is contained in:
@@ -1890,18 +1890,10 @@ void EditorPanel::histogramChanged (LUTu & histRed, LUTu & histGreen, LUTu & his
|
||||
bool EditorPanel::CheckSidePanelsVisibility()
|
||||
{
|
||||
if (tbTopPanel_1) {
|
||||
if(tbTopPanel_1->get_active() == false && tbRightPanel_1->get_active() == false && hidehp->get_active() == false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return !(!tbTopPanel_1->get_active() && !tbRightPanel_1->get_active() && !hidehp->get_active());
|
||||
}
|
||||
|
||||
if(tbRightPanel_1->get_active() == false && hidehp->get_active() == false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return !(!tbRightPanel_1->get_active() && !hidehp->get_active());
|
||||
}
|
||||
void EditorPanel::toggleSidePanels()
|
||||
{
|
||||
@@ -1918,7 +1910,7 @@ void EditorPanel::toggleSidePanels()
|
||||
tbRightPanel_1->set_active (!bAllSidePanelsVisible);
|
||||
hidehp->set_active (!bAllSidePanelsVisible);
|
||||
|
||||
if (bAllSidePanelsVisible == false) {
|
||||
if (!bAllSidePanelsVisible) {
|
||||
tbShowHideSidePanels->set_image (*iShowHideSidePanels);
|
||||
} else {
|
||||
tbShowHideSidePanels->set_image (*iShowHideSidePanels_exit);
|
||||
|
Reference in New Issue
Block a user