Don't notify twice

This commit is contained in:
Gregory Schier
2024-09-09 15:44:35 -07:00
parent 36890b9a32
commit 7907dcc220
2 changed files with 26 additions and 4 deletions

View File

@@ -2104,9 +2104,10 @@ async fn handle_plugin_event<R: Runtime>(
.await
.unwrap();
}
let plugin_name = plugin_handle.info().await.unwrap().name;
let toast_event = plugin_handle.build_event_to_send(
&InternalEventPayload::ShowToastRequest(ShowToastRequest {
message: "Plugin Reloaded".to_string(),
message: format!("Reloaded plugin {}", plugin_name),
variant: ToastVariant::Info,
}),
None,