mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-20 03:24:52 +00:00
chore: format
This commit is contained in:
parent
5778b9e979
commit
244a2cfff1
3 changed files with 17 additions and 9 deletions
|
@ -180,7 +180,7 @@ impl App {
|
|||
JobWorkerOut::Log(rows) => Msg::OnServiceLog(rows),
|
||||
JobWorkerOut::Exit(code) => Msg::OnServiceExit(code),
|
||||
},
|
||||
debug
|
||||
debug,
|
||||
);
|
||||
worker.start();
|
||||
self.xrservice_worker = Some(worker);
|
||||
|
@ -396,9 +396,7 @@ impl SimpleComponent for App {
|
|||
self.shutdown_xrservice();
|
||||
}
|
||||
},
|
||||
Msg::StartWithDebug => {
|
||||
self.start_xrservice(sender, true)
|
||||
}
|
||||
Msg::StartWithDebug => self.start_xrservice(sender, true),
|
||||
Msg::RestartXRService => match &mut self.xrservice_worker {
|
||||
None => {
|
||||
self.start_xrservice(sender, false);
|
||||
|
@ -443,8 +441,12 @@ impl SimpleComponent for App {
|
|||
jobs.push_back(get_build_mercury_job(&profile));
|
||||
}
|
||||
jobs.extend(match profile.xrservice_type {
|
||||
XRServiceType::Monado => get_build_monado_jobs(&profile, clean_build, debug_build),
|
||||
XRServiceType::Wivrn => get_build_wivrn_jobs(&profile, clean_build, debug_build),
|
||||
XRServiceType::Monado => {
|
||||
get_build_monado_jobs(&profile, clean_build, debug_build)
|
||||
}
|
||||
XRServiceType::Wivrn => {
|
||||
get_build_wivrn_jobs(&profile, clean_build, debug_build)
|
||||
}
|
||||
});
|
||||
// no listed deps for opencomp
|
||||
}
|
||||
|
|
|
@ -176,8 +176,14 @@ impl InternalJobWorker {
|
|||
"gdb -batch -ex run -ex bt --args", LAUNCH_OPTS_CMD_PLACEHOLDER, launch_opts
|
||||
)
|
||||
}
|
||||
} else {String::default()};
|
||||
launch_opts = if debug { debug_launch_opts.as_str() } else { launch_opts };
|
||||
} else {
|
||||
String::default()
|
||||
};
|
||||
launch_opts = if debug {
|
||||
debug_launch_opts.as_str()
|
||||
} else {
|
||||
launch_opts
|
||||
};
|
||||
let (command, args) = match launch_opts.is_empty() {
|
||||
false => (
|
||||
"sh".into(),
|
||||
|
|
|
@ -48,7 +48,7 @@ impl JobWorker {
|
|||
prof: &Profile,
|
||||
sender: &Sender<X>,
|
||||
transform: F,
|
||||
debug: bool
|
||||
debug: bool,
|
||||
) -> Self {
|
||||
let state = Arc::new(Mutex::new(JobWorkerState::default()));
|
||||
Self {
|
||||
|
|
Loading…
Add table
Reference in a new issue