b464a7b24f
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 2m15s
25 lines
910 B
Plaintext
25 lines
910 B
Plaintext
|
|
//
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
}));
|
|
|
|
/
|
|
|