Add expired space trash purge

This commit is contained in:
2026-05-09 11:38:45 -04:00
parent 8b9c4579c1
commit a1aa38dbb2
5 changed files with 147 additions and 11 deletions
+10
View File
@@ -1,3 +1,5 @@
use std::time::SystemTime;
use ely_domain::{ProfileId, SpaceId};
use gpui::{Context, Window};
@@ -71,6 +73,14 @@ impl ElyShell {
}
}
pub(super) fn purge_expired_trashed_spaces(&mut self, cx: &mut Context<Self>) {
if let ShellState::Ready(core) = &mut self.state
&& core.purge_expired_trashed_spaces(SystemTime::now()) > 0
{
cx.notify();
}
}
pub(super) fn on_select_next_space(
&mut self,
_: &SelectNextSpace,