|
|
|
@ -388,9 +388,10 @@ impl Application {
|
|
|
|
|
}
|
|
|
|
|
Event::Breakpoint(events::Breakpoint { reason, breakpoint }) => match &reason[..] {
|
|
|
|
|
"new" => {
|
|
|
|
|
if let Some(source) = breakpoint.source {
|
|
|
|
|
self.editor
|
|
|
|
|
.breakpoints
|
|
|
|
|
.entry(breakpoint.source.unwrap().path.unwrap()) // TODO: no unwraps
|
|
|
|
|
.entry(source.path.unwrap()) // TODO: no unwraps
|
|
|
|
|
.or_default()
|
|
|
|
|
.push(Breakpoint {
|
|
|
|
|
id: breakpoint.id,
|
|
|
|
@ -401,6 +402,7 @@ impl Application {
|
|
|
|
|
..Default::default()
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
"changed" => {
|
|
|
|
|
for breakpoints in self.editor.breakpoints.values_mut() {
|
|
|
|
|
if let Some(i) = breakpoints.iter().position(|b| b.id == breakpoint.id)
|
|
|
|
|