Add labels to plugin event subscribers

This commit is contained in:
Gregory Schier
2024-10-18 10:46:30 -07:00
parent 2ecd86da78
commit 741ccbe741
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1969,7 +1969,7 @@ fn monitor_plugin_events<R: Runtime>(app_handle: &AppHandle<R>) {
let app_handle = app_handle.clone();
tauri::async_runtime::spawn(async move {
let plugin_manager: State<'_, PluginManager> = app_handle.state();
let (rx_id, mut rx) = plugin_manager.subscribe().await;
let (rx_id, mut rx) = plugin_manager.subscribe("app").await;
while let Some(event) = rx.recv().await {
let app_handle = app_handle.clone();