Skip to content

Commit

Permalink
Update CategoryFlowBox.vala
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce authored Sep 2, 2023
1 parent 035152a commit 3f5d66a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Widgets/CategoryFlowBox.vala
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,17 @@ namespace Fusebox {
var name1 = ((CategoryIcon) row1).fuse.category.to_string ().replace ("FUSEBOX_FUSE_CATEGORY_", "").down ();
var name2 = row2 != null ? ((CategoryIcon) row2).fuse.category.to_string ().replace ("FUSEBOX_FUSE_CATEGORY_", "").down () : null;
string header_string = null;
string name1_without_first_letter = name1.substring (1);
string name2_without_first_letter = name2.substring (1);

if (name1 != "") {
header_string = name1[0].to_string ().up () + name1.substring (1);
header_string = name1[0].to_string ().up () + name1_without_first_letter;
} else {
header_string = "";
}

if (name2 != null) {
if ((name2[0].to_string ().up () + name2.substring (1)) == header_string) {
if ((name2[0].to_string ().up () + name2_without_first_letter) == header_string) {
return;
}
}
Expand Down

0 comments on commit 3f5d66a

Please sign in to comment.