Skip to content

Commit

Permalink
create global styles directory if none exists
Browse files Browse the repository at this point in the history
  • Loading branch information
justDeeevin committed Apr 10, 2024
1 parent ac845c6 commit 157d4cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ fn main() -> Result<()> {
fs::remove_file(nuhxboard_path.join("keyboards.zip"))?;
}

if !nuhxboard_path.join("keyboards/global").exists() {
fs::create_dir_all(nuhxboard_path.join("keyboards/global"))?;
}

let settings_file = File::open(nuhxboard_path.join("NuhxBoard.json"))?;

let settings: Settings = serde_json::from_reader(settings_file)?;
Expand Down

0 comments on commit 157d4cd

Please sign in to comment.