This commit is contained in:
hodasemi 2024-08-29 11:13:28 +02:00
parent 9c0250e1f6
commit e0dc572580

View file

@ -890,9 +890,9 @@ impl GuiHandler {
}
pub fn process_callbacks(&self) -> Result<()> {
mem::take(&mut *self.callback_list.lock().unwrap())
.into_iter()
.try_for_each(|callback| callback())
let callbacks = mem::take(&mut *self.callback_list.lock().unwrap());
callbacks.into_iter().try_for_each(|callback| callback())
}
fn render(