my typos are getting ridiclous

This commit is contained in:
Ward from fusion-voyager-3 2024-06-24 02:06:10 +03:00
parent be609d9e20
commit 077dce8501
2 changed files with 4 additions and 2 deletions

View File

@ -133,7 +133,10 @@ pub fn content(
browse_kernels_button.connect_clicked(
clone!(@weak window, @weak content_stack, @strong selected_kernel_branch => move |_| {
kernel_pkg::kernel_pkg_page(&content_stack, &window, &selected_kernel_branch);
match content_stack.child_by_name("kernel_pkg_page") {
Some(_) => ,
None() => kernel_pkg::kernel_pkg_page(&content_stack, &window, &selected_kernel_branch)
};
content_stack.set_visible_child_name("kernel_pkg_page")
}),
);

View File

@ -137,7 +137,6 @@ pub fn kernel_pkg_page(
back_button.connect_clicked(clone!(@weak content_stack, @weak main_box => move |_| {
content_stack.set_visible_child_name("content_page");
content_stack.remove(&main_box);
}));
window_bottombar.append(&back_button);