[fractal: 2/2] Merge branch 'paysonwallach/fractal-patch-1'



commit a5bdd29211859596c9de2741166a8d5904a7805f
Merge: 0beb9ab2 4bce1160
Author: Daniel GarcĂ­a Moreno <dani danigm net>
Date:   Tue Dec 10 08:24:32 2019 +0100

    Merge branch 'paysonwallach/fractal-patch-1'

 fractal-gtk/src/app/connect/headerbar.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --cc fractal-gtk/src/app/connect/headerbar.rs
index 747bb9e0,f0088e46..65e0c3d0
--- a/fractal-gtk/src/app/connect/headerbar.rs
+++ b/fractal-gtk/src/app/connect/headerbar.rs
@@@ -37,12 -37,12 +37,12 @@@ impl App 
                      let decor_split: Vec<String> = decor.splitn(2,':').map(|s| s.to_string()).collect();
                      // Change the headerbar controls depending on position
                      // of close
-                     if decor_split[1].contains("close") {
 -                    if decor_split.len() > 1 && !decor_split[1].contains("close") {
 -                        right_header.set_show_close_button(false);
 -                        left_header.set_show_close_button(true);
 -                    } else {
++                    if decor_split.len() > 1 && decor_split[1].contains("close") {
                          left_header.set_show_close_button(false);
                          right_header.set_show_close_button(true);
 +                    } else {
 +                        right_header.set_show_close_button(false);
 +                        left_header.set_show_close_button(true);
                      }
                  };
              }));


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