Add reading list progress actions

This commit is contained in:
2026-05-08 06:23:21 -04:00
parent fc00840697
commit e13557814d
7 changed files with 152 additions and 16 deletions
+19
View File
@@ -0,0 +1,19 @@
use ely_domain::{ReadingListId, ReadingProgress};
use gpui::Context;
use super::{ElyShell, ShellState};
impl ElyShell {
pub(super) fn set_reading_list_progress(
&mut self,
entry_id: &ReadingListId,
progress: ReadingProgress,
cx: &mut Context<Self>,
) {
if let ShellState::Ready(core) = &mut self.state
&& core.set_reading_list_progress(entry_id, progress).is_ok()
{
cx.notify();
}
}
}