From 4f4128102f29065c23e734ab3e3543a8ed113d33 Mon Sep 17 00:00:00 2001 From: Felix Zwettler Date: Thu, 9 Mar 2023 08:32:46 +0100 Subject: [PATCH] fix pen sounds data dir --- rnote-ui/src/appwindow/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rnote-ui/src/appwindow/mod.rs b/rnote-ui/src/appwindow/mod.rs index addd8312cb..180ac16fc8 100644 --- a/rnote-ui/src/appwindow/mod.rs +++ b/rnote-ui/src/appwindow/mod.rs @@ -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) => { @@ -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; }