Skip to content

Commit

Permalink
CategoryFlowBox.vala - Prettify category name so it's not uppercased
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce authored Sep 2, 2023
1 parent 300319c commit f2fbcd9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Widgets/CategoryFlowBox.vala
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ namespace Fusebox {
private void header_function (Gtk.ListBoxRow row1, Gtk.ListBoxRow? row2) {
// Type-check Rows
if (row1 is CategoryIcon && (row2 == null || row2 is CategoryIcon)) {
var name1 = ((CategoryIcon) row1).fuse.category.to_string ().replace ("FUSEBOX_FUSE_CATEGORY_", "");
var name2 = row2 != null ? (
(CategoryIcon) row2).fuse.category.to_string ().replace ("FUSEBOX_FUSE_CATEGORY_", "") : null;
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;

if (name1 != "") {
header_string = name1;
header_string = name1[0].up () + name1.substring (1,name1.len);
} else {
header_string = "";
}
Expand Down

0 comments on commit f2fbcd9

Please sign in to comment.