From f3d142b7e9a8110e1554b6bcc45519855544a0fb Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Mon, 27 Nov 2023 16:22:27 -0700 Subject: [PATCH] remove zed1 notification mess --- crates/workspace/src/workspace.rs | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs index 268c4f2ca0ea8fa26ecc36d04687f4527692a4f1..bea26e402ef41fea9b0acaa7d73a7459110be40a 100644 --- a/crates/workspace/src/workspace.rs +++ b/crates/workspace/src/workspace.rs @@ -56,14 +56,16 @@ use std::{ }; use crate::{ - notifications::{simple_message_notification::MessageNotification, NotificationTracker}, + notifications::NotificationTracker, persistence::model::{ DockData, DockStructure, SerializedPane, SerializedPaneGroup, SerializedWorkspace, }, }; use dock::{Dock, DockPosition, Panel, PanelButtons, PanelHandle}; use lazy_static::lazy_static; -use notifications::{simple_message_notification, NotificationHandle, NotifyResultExt}; +use notifications::{ + simple_message_notification::MessageNotification, NotificationHandle, NotifyResultExt, +}; pub use pane::*; pub use pane_group::*; use persistence::{model::SerializedItem, DB}; @@ -778,20 +780,6 @@ impl Workspace { cx.defer(|this, cx| { this.update_window_title(cx); - - this.show_notification(0, cx, |cx| { - cx.add_view(|_cx| { - simple_message_notification::MessageNotification::new(format!( - "Error: what happens if this message is very very very very very long " - )) - .with_click_message("Click here because!") - }) - }); - this.show_notification(1, cx, |cx| { - cx.add_view(|_cx| { - simple_message_notification::MessageNotification::new(format!("Nope")) - }) - }); }); Workspace { weak_self: weak_handle.clone(),