implements PLN-0061 shell running lifecycle integration
This commit is contained in:
@@ -66,10 +66,13 @@ impl ShellRunningStep {
|
||||
return Some(FirmwareState::AppCrashes(AppCrashesStep { report }));
|
||||
}
|
||||
|
||||
if !outcome.focused_window_active {
|
||||
if !ctx.os.windows().focused_window_belongs_to_task(self.task_id) {
|
||||
ctx.os.info(
|
||||
LogSource::Hub,
|
||||
format!("Closing shell task {:?}: no focused window active", self.task_id),
|
||||
format!(
|
||||
"Closing shell task {:?}: focused window does not belong to task",
|
||||
self.task_id,
|
||||
),
|
||||
);
|
||||
if let Err(error) = ctx.os.lifecycle().close_task(self.task_id) {
|
||||
ctx.os.error(
|
||||
|
||||
Reference in New Issue
Block a user