Add space default profile control

This commit is contained in:
2026-05-08 09:25:25 -04:00
parent b11668e75e
commit 3fe2346305
4 changed files with 81 additions and 2 deletions
+13 -1
View File
@@ -1,10 +1,22 @@
use ely_domain::SpaceId;
use ely_domain::{ProfileId, SpaceId};
use gpui::{Context, Window};
use super::{ElyShell, ShellState};
use crate::{SelectNextSpace, SelectPreviousSpace};
impl ElyShell {
pub(super) fn set_active_space_default_profile(
&mut self,
profile_id: &ProfileId,
cx: &mut Context<Self>,
) {
if let ShellState::Ready(core) = &mut self.state
&& core.set_active_space_default_profile(profile_id).is_ok()
{
cx.notify();
}
}
pub(super) fn move_space_up(&mut self, space_id: &SpaceId, cx: &mut Context<Self>) {
if let ShellState::Ready(core) = &mut self.state
&& core.move_space_up(space_id).is_ok_and(|moved| moved)