Skip to content

Commit

Permalink
fix missing extension directory error
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
sehnryr committed Nov 6, 2024
1 parent 3b29253 commit 46a86c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,10 @@ pub fn run() {
.app_local_data_dir()
.expect("failed to get local app data dir");

// Load the extensions.
let extensions_dir = app_local_data_dir.join(EXTENSIONS_DIR);
std::fs::create_dir_all(&extensions_dir).expect("failed to create extensions dir");

// Load the extensions.
let extensions = Extensions::from_dir(extensions_dir);
app.manage(extensions);

Expand Down

0 comments on commit 46a86c6

Please sign in to comment.