File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -515,18 +515,16 @@ namespace Colorway {
515
515
string export_txt = " " ;
516
516
517
517
export_txt + = box. hex + " \n " ;
518
-
519
- switch (color_rule_dropdown . get_selected ()) {
520
- case 2 :
521
- export_txt + = sbox . hex + " \n " ;
522
- break ;
523
- default:
524
- export_txt + = tbox. hex + " \n " ;
525
- break ;
518
+ export_txt + = sbox . hex + " \n " ;
519
+
520
+ uint selected = color_rule_dropdown . get_selected ();
521
+ if (selected == 2 ) {
522
+ export_txt + = tbox . hex + " \n " ;
523
+ } else if (selected >= 3 ) {
524
+ export_txt + = tbox. hex + " \n " ;
525
+ export_txt + = ubox . hex + " \n " ;
526
526
}
527
527
528
- export_txt + = ubox. hex + " \n " ;
529
-
530
528
// Put this ext_txt in clipboard
531
529
var display = Gdk . Display . get_default ();
532
530
unowned var clipboard = display. get_clipboard ();
@@ -572,4 +570,4 @@ namespace Colorway {
572
570
about. present ();
573
571
}
574
572
}
575
- }
573
+ }
You can’t perform that action at this time.
0 commit comments