fix warn
This commit is contained in:
parent
9c82a08834
commit
32058d32de
@ -51,7 +51,7 @@ pub fn build_ui(app: &adw::Application) {
|
||||
|
||||
let language_changed_action = gio::SimpleAction::new("lang-changed", None);
|
||||
|
||||
language_page::language_page(&window, &carousel, &language_changed_action);
|
||||
language_page::language_page(&carousel, &language_changed_action);
|
||||
|
||||
eula_page::eula_page(&carousel, &language_changed_action);
|
||||
|
||||
|
@ -101,7 +101,7 @@ pub fn eula_page(
|
||||
closure_local!(
|
||||
#[weak]
|
||||
main_carousel,
|
||||
move |language_page: installer_stack_page::InstallerStackPage|
|
||||
move |_language_page: installer_stack_page::InstallerStackPage|
|
||||
{
|
||||
main_carousel.scroll_to(&main_carousel.nth_page(1), true)
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ use adw::{prelude::*};
|
||||
use glib::{clone, closure_local};
|
||||
use std::{process::Command, env, fs, path::Path};
|
||||
pub fn language_page(
|
||||
window: &adw::ApplicationWindow,
|
||||
main_carousel: &adw::Carousel,
|
||||
language_changed_action: &gio::SimpleAction
|
||||
) {
|
||||
@ -316,7 +315,7 @@ pub fn language_page(
|
||||
closure_local!(
|
||||
#[weak]
|
||||
main_carousel,
|
||||
move |language_page: installer_stack_page::InstallerStackPage|
|
||||
move |_language_page: installer_stack_page::InstallerStackPage|
|
||||
{
|
||||
main_carousel.scroll_to(&main_carousel.nth_page(0), true)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user