Add space default profile control
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user