all: remove control center in its entirety
This commit is contained in:
parent
1dfd6169f8
commit
769d12a525
97 changed files with 59 additions and 10580 deletions
|
|
@ -1,32 +0,0 @@
|
|||
use {
|
||||
crate::{
|
||||
cli::GlobalArgs,
|
||||
tools::tool_client::{Handle, ToolClient, with_tool_client},
|
||||
wire::{jay_compositor, jay_open_control_center_request},
|
||||
},
|
||||
std::rc::Rc,
|
||||
};
|
||||
|
||||
pub fn main(global: GlobalArgs) {
|
||||
with_tool_client(global.log_level, |tc| async move {
|
||||
let cc = ControlCenter { tc: tc.clone() };
|
||||
cc.run().await;
|
||||
});
|
||||
}
|
||||
|
||||
struct ControlCenter {
|
||||
tc: Rc<ToolClient>,
|
||||
}
|
||||
|
||||
impl ControlCenter {
|
||||
async fn run(self) {
|
||||
let tc = &self.tc;
|
||||
let comp = tc.jay_compositor().await;
|
||||
let id = tc.id();
|
||||
tc.send(jay_compositor::OpenControlCenter { self_id: comp, id });
|
||||
jay_open_control_center_request::Failed::handle(&tc, id, (), |_, ev| {
|
||||
fatal!("Could not open the control center: {}", ev.msg);
|
||||
});
|
||||
tc.round_trip().await;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue