Don't notify twice

This commit is contained in:
Gregory Schier committed 2024-09-09 15:44:35 -07:00
1 parent 36890b9a32
commit 7907dcc220
2 files changed
+26 -4

No files matched your search

+2 -1
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,