Add note removal

This commit is contained in:
2026-05-08 06:59:03 -04:00
parent 7e68857eb8
commit 818e8e550d
6 changed files with 80 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
use ely_domain::NoteId;
use gpui::Context;
use super::{ElyShell, ShellState};
impl ElyShell {
pub(super) fn remove_note_entry(&mut self, note_id: &NoteId, cx: &mut Context<Self>) {
if let ShellState::Ready(core) = &mut self.state
&& core.remove_note_entry(note_id).is_ok()
{
cx.notify();
}
}
}