Skip to content

Commit

Permalink
Fix global appearing in keyboard category list
Browse files Browse the repository at this point in the history
  • Loading branch information
justDeeevin committed Mar 23, 2024
1 parent 4340833 commit 42dc8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nuhxboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ impl Application for NuhxBoard {
self.keyboard_category_options = fs::read_dir(path)
.unwrap()
.map(|r| r.unwrap())
.filter(|entry| entry.file_type().unwrap().is_dir())
.filter(|entry| entry.file_type().unwrap().is_dir() && entry.file_name() != "global")
.map(|entry| entry.file_name().to_str().unwrap().to_owned())
.collect::<Vec<_>>();

Expand Down

0 comments on commit 42dc8e5

Please sign in to comment.