mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 03:25:59 +00:00
remove zed1 notification mess
This commit is contained in:
parent
ccfc4fc0b9
commit
f3d142b7e9
1 changed files with 4 additions and 16 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue