From 1583d13230713f9e9f2dbdbcf07e245caf02a80c Mon Sep 17 00:00:00 2001 From: Benjamin Klum Date: Wed, 1 Nov 2023 21:10:19 +0100 Subject: [PATCH] Make things build again with Playtime --- main/src/infrastructure/ui/independent_panel_manager.rs | 4 ++-- main/src/infrastructure/ui/main_panel.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/src/infrastructure/ui/independent_panel_manager.rs b/main/src/infrastructure/ui/independent_panel_manager.rs index 7487ec696..15a748475 100644 --- a/main/src/infrastructure/ui/independent_panel_manager.rs +++ b/main/src/infrastructure/ui/independent_panel_manager.rs @@ -101,7 +101,7 @@ impl IndependentPanelManager { #[cfg(feature = "playtime")] pub fn show_app_panel(&self) { let result = self.show_app_panel_internal(); - notification::notify_user_on_anyhow_error(result); + crate::base::notification::notify_user_on_anyhow_error(result); } #[cfg(feature = "playtime")] @@ -122,7 +122,7 @@ impl IndependentPanelManager { return Ok(()); } // Fail fast if library not available - let _ = App::get_or_load_app_library()?; + let _ = crate::infrastructure::plugin::App::get_or_load_app_library()?; // Then open self.app_panel.clone().open(reaper_main_window()); Ok(()) diff --git a/main/src/infrastructure/ui/main_panel.rs b/main/src/infrastructure/ui/main_panel.rs index 833c1a950..da175f1db 100644 --- a/main/src/infrastructure/ui/main_panel.rs +++ b/main/src/infrastructure/ui/main_panel.rs @@ -297,7 +297,7 @@ impl MainPanel { let activate_data = self .active_data .borrow() - .ok_or_else(|| anyhow!("main panel not active yet"))?; + .ok_or_else(|| anyhow::anyhow!("main panel not active yet"))?; Ok(activate_data.panel_manager.borrow().app_panel().clone()) }