Skip to content

Commit

Permalink
fix pen sounds data dir
Browse files Browse the repository at this point in the history
  • Loading branch information
flxzt committed Mar 9, 2023
1 parent 06749a0 commit 4f41281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rnote-ui/src/appwindow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ impl RnAppWindow {
.canvas()
.engine()
.borrow_mut()
.load_engine_config(current_engine_config, Some(config::DATADIR.into()))
.load_engine_config(current_engine_config, Some(config::PKGDATADIR.into()))
{
Ok(wf) => self.handle_widget_flags(wf, &new_wrapper.canvas()),
Err(e) => {
Expand Down Expand Up @@ -846,7 +846,7 @@ impl RnAppWindow {
widget_flags.merge(active_engine.reinstall_pen_current_style());
active_engine.import_prefs = prev_engine.import_prefs;
active_engine.export_prefs = prev_engine.export_prefs;
active_engine.set_pen_sounds(prev_engine.pen_sounds(), Some(config::DATADIR.into()));
active_engine.set_pen_sounds(prev_engine.pen_sounds(), Some(config::PKGDATADIR.into()));
active_engine.visual_debug = prev_engine.visual_debug;
}

Expand Down

0 comments on commit 4f41281

Please sign in to comment.