Fix panic in background thread

This commit is contained in:
Ian Douglas Scott 2023-07-20 15:42:32 -07:00
parent c98b48586f
commit 970b07fa58

View file

@ -135,7 +135,7 @@ impl AppData {
}
}
CaptureSource::Workspace(_, output) => {
if let Some(name) = &self.output_state.info(&output).unwrap().name {
if let Some(name) = &self.output_state.info(&output).and_then(|x| x.name) {
self.capture_filter.workspaces_on_outputs.contains(name)
} else {
false