get rid of warnings
This commit is contained in:
parent
112f56ad9c
commit
9e5e1c6770
@ -2,12 +2,10 @@ use crate::APP_GITHUB;
|
|||||||
use crate::APP_ICON;
|
use crate::APP_ICON;
|
||||||
use crate::APP_ID;
|
use crate::APP_ID;
|
||||||
use crate::VERSION;
|
use crate::VERSION;
|
||||||
use crate::{content, kernel_pkg, sched_ext, KernelBranch};
|
use crate::{content, KernelBranch};
|
||||||
use adw::prelude::*;
|
use adw::prelude::*;
|
||||||
use adw::*;
|
use adw::*;
|
||||||
use glib::property::PropertyGet;
|
|
||||||
use glib::{clone, MainContext};
|
use glib::{clone, MainContext};
|
||||||
use gtk::prelude::*;
|
|
||||||
use gtk::*;
|
use gtk::*;
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
use crate::{kernel_pkg, sched_ext, KernelBranch, RunningKernelInfo};
|
use crate::{kernel_pkg, sched_ext, KernelBranch, RunningKernelInfo};
|
||||||
use adw::prelude::*;
|
use adw::prelude::*;
|
||||||
use adw::ExpanderRow;
|
|
||||||
use async_channel::Receiver;
|
use async_channel::Receiver;
|
||||||
use duct::cmd;
|
use duct::cmd;
|
||||||
use glib::property::PropertyGet;
|
|
||||||
use glib::*;
|
use glib::*;
|
||||||
use gtk::prelude::*;
|
|
||||||
use gtk::*;
|
use gtk::*;
|
||||||
use homedir::get_my_home;
|
use homedir::get_my_home;
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
@ -408,7 +405,7 @@ fn get_kernel_branches() -> Result<Vec<KernelBranch>, reqwest::Error> {
|
|||||||
println!("{}", t!("db_download_complete"));
|
println!("{}", t!("db_download_complete"));
|
||||||
println!("{} {} {}", t!("db_init_script_run_p1"), &branch.name, t!("db_init_script_run_p2"));
|
println!("{} {} {}", t!("db_init_script_run_p1"), &branch.name, t!("db_init_script_run_p2"));
|
||||||
match cmd!("bash", "-c", &branch.init_script).run() {
|
match cmd!("bash", "-c", &branch.init_script).run() {
|
||||||
Ok(t) => println!("{} {}", &branch.name, t!("db_init_script_successful")),
|
Ok(_) => println!("{} {}", &branch.name, t!("db_init_script_successful")),
|
||||||
_ => println!("{} {}", &branch.name, t!("db_init_script_failed")),
|
_ => println!("{} {}", &branch.name, t!("db_init_script_failed")),
|
||||||
};
|
};
|
||||||
kernel_branches_array.push(branch)
|
kernel_branches_array.push(branch)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
use std::{cell::RefCell, env, rc::Rc, sync::OnceLock};
|
use std::{cell::RefCell, sync::OnceLock};
|
||||||
|
|
||||||
use adw::*;
|
use adw::*;
|
||||||
use adw::{prelude::*, subclass::prelude::*, *};
|
use adw::{prelude::*, subclass::prelude::*};
|
||||||
use glib::{clone, subclass::Signal, Properties};
|
use glib::{subclass::Signal, Properties};
|
||||||
use gtk::{glib, Orientation::Horizontal};
|
use gtk::{glib};
|
||||||
|
|
||||||
// ANCHOR: custom_button
|
// ANCHOR: custom_button
|
||||||
// Object holding the state
|
// Object holding the state
|
||||||
|
@ -1,14 +1,10 @@
|
|||||||
use crate::content::get_running_kernel_info;
|
use crate::{kernel_package_row, KernelBranch};
|
||||||
use crate::{kernel_package_row, KernelBranch, RunningKernelInfo};
|
|
||||||
use adw::prelude::*;
|
use adw::prelude::*;
|
||||||
use duct::cmd;
|
use duct::cmd;
|
||||||
use glib::*;
|
use glib::*;
|
||||||
use gtk::prelude::*;
|
|
||||||
use gtk::*;
|
use gtk::*;
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::fs;
|
|
||||||
use std::fs::*;
|
|
||||||
use std::io::BufRead;
|
use std::io::BufRead;
|
||||||
use std::io::BufReader;
|
use std::io::BufReader;
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
@ -8,7 +8,6 @@ use std::fs;
|
|||||||
use rust_i18n::Backend;
|
use rust_i18n::Backend;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::fmt::format;
|
|
||||||
use adw::prelude::*;
|
use adw::prelude::*;
|
||||||
use gtk::{gio,gdk,CssProvider};
|
use gtk::{gio,gdk,CssProvider};
|
||||||
|
|
||||||
@ -61,6 +60,7 @@ struct RunningKernelInfo {
|
|||||||
sched: String,
|
sched: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
struct KernelBranch {
|
struct KernelBranch {
|
||||||
name: String,
|
name: String,
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
use crate::content::get_running_kernel_info;
|
use crate::content::get_running_kernel_info;
|
||||||
use crate::{KernelBranch, RunningKernelInfo};
|
|
||||||
use adw::prelude::*;
|
use adw::prelude::*;
|
||||||
use duct::cmd;
|
use duct::cmd;
|
||||||
use glib::*;
|
use glib::*;
|
||||||
use gtk::prelude::*;
|
|
||||||
use gtk::AccessibleRole::Command;
|
|
||||||
use gtk::*;
|
use gtk::*;
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::fs::*;
|
|
||||||
use std::process::Stdio;
|
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use std::{fs, io, thread};
|
use std::{fs, io, thread};
|
||||||
@ -20,10 +15,6 @@ pub fn sched_ext_page(content_stack: >k::Stack, window: &adw::ApplicationWindo
|
|||||||
.orientation(Orientation::Vertical)
|
.orientation(Orientation::Vertical)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let kernel_badges_size_group = gtk::SizeGroup::new(SizeGroupMode::Both);
|
|
||||||
let kernel_badges_size_group0 = gtk::SizeGroup::new(SizeGroupMode::Both);
|
|
||||||
let kernel_badges_size_group1 = gtk::SizeGroup::new(SizeGroupMode::Both);
|
|
||||||
|
|
||||||
let main_icon = gtk::Image::builder()
|
let main_icon = gtk::Image::builder()
|
||||||
.pixel_size(128)
|
.pixel_size(128)
|
||||||
.halign(Align::Center)
|
.halign(Align::Center)
|
||||||
|
Loading…
Reference in New Issue
Block a user