pika-kernel-manager/LICENSE

25 lines
910 B
Plaintext
Raw Normal View History

2024-07-03 20:21:32 +02:00
2024-09-01 09:10:07 +02:00
//
let get_kernel_branches_loop_context = MainContext::default();
// The main loop executes the asynchronous block
get_kernel_branches_loop_context.spawn_local(clone!(@strong loading_box, @strong window_banner, @strong kernel_db_refcell, @strong db_load_complete => async move {
while let Ok(data) = get_kernel_branches_receiver.recv().await {
match data {
Ok(t) => {
(*kernel_db_refcell.borrow_mut()) = t;
*db_load_complete.borrow_mut() = true;
println!("{} {}", "Pika Kernels",t!("db_load_complete"))
}
_ => {
window_banner.set_title(&t!("banner_text_url_error").to_string());
window_banner.set_revealed(true);
loading_box.set_visible(false);
}
}
}
}));
/
2024-07-03 20:21:32 +02:00