forge
Explore
Log in

Don't you dare go Hollow

The cancelled import speaks through the notice queue

Browse files at this commit

d381b07c06f15d38840f3a3dc0fb62e6de62a211Ahmet Kaan GümüşParent: 555a273
  • fix
    • the cancelled import speaks through the notice queue
Show full message
🔀 fix(ui): the cancelled import speaks through the notice queue

The import bar's Cancel and the notice *queue* were written in two lanes:
one added `cancel_import`, the other turned the single `notice` field into a
`VecDeque` behind `notify_user`. Assembled, the cancel was the one message in
the editor still writing the field directly -- which no longer exists. It goes
through the same door as everything else, so a cancel behind another message
queues rather than overwriting it.
crates/app/src/main.rsmodified+1 -1
@@ -4274,7 +4274,7 @@ impl Player {
4274 file_name(&import.path)4274 file_name(&import.path)
4275 );4275 );
4276 eprintln!("{text}");4276 eprintln!("{text}");
4277- self.notice = Some(text.into());4277+ self.notify_user(text.into());
4278 cx.notify();4278 cx.notify();
4279 }4279 }
4280 4280