This commit is contained in:
Ward from fusion-voyager-3 2024-08-06 19:53:57 +03:00
parent 9c82a08834
commit 32058d32de
3 changed files with 3 additions and 4 deletions

View File

@ -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);

View File

@ -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)
}

View File

@ -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)
}