[libadwaita] leaflet: avoid redundant condition



commit caf7fb7274b54493f6ef638d470a1918fa67e290
Author: ZenWalker <scow riseup net>
Date:   Wed Jun 2 10:18:22 2021 +0200

    leaflet: avoid redundant condition

 src/adw-leaflet.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/adw-leaflet.c b/src/adw-leaflet.c
index 0ce04f1b..78ca8634 100644
--- a/src/adw-leaflet.c
+++ b/src/adw-leaflet.c
@@ -1716,9 +1716,9 @@ add_page (AdwLeaflet     *self,
     set_visible_child (self, page, self->transition_type,
                        self->child_transition.duration);
   if (!self->folded ||
-      (self->folded && (self->homogeneous[ADW_FOLD_FOLDED][GTK_ORIENTATION_HORIZONTAL] ||
-                        self->homogeneous[ADW_FOLD_FOLDED][GTK_ORIENTATION_VERTICAL] ||
-                        self->visible_child == page)))
+      self->homogeneous[ADW_FOLD_FOLDED][GTK_ORIENTATION_HORIZONTAL] ||
+      self->homogeneous[ADW_FOLD_FOLDED][GTK_ORIENTATION_VERTICAL] ||
+      self->visible_child == page)
     gtk_widget_queue_resize (GTK_WIDGET (self));
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]