chore: Code cleanup

This commit is contained in:
Fabio Lenherr / DashieTM 2023-11-19 02:37:11 +01:00
parent 192dacb333
commit cb3dd257f1
22 changed files with 121 additions and 106 deletions

View file

@ -1,9 +1,8 @@
use std::cell::RefCell;
use std::collections::HashMap;
use crate::components::base::listEntry::ListEntry;
use gtk::subclass::prelude::*;
use gtk::{glib, CompositeTemplate, TemplateChild, Label, DropDown, StringList};
use gtk::{glib, CompositeTemplate, DropDown, Label, StringList, TemplateChild};
use super::cardEntry;
@ -19,7 +18,7 @@ pub struct CardEntry {
pub resetCardList: TemplateChild<StringList>,
// first string is the alias name, the first return string is the index of the adapter and the
// second the name of the profile
pub resetCardMap: RefCell<HashMap<String, (u32, String)>>
pub resetCardMap: RefCell<HashMap<String, (u32, String)>>,
}
#[glib::object_subclass]

View file

@ -1,8 +1,6 @@
use std::collections::HashMap;
use crate::components::base::listEntry;
use gtk::subclass::prelude::*;
use gtk::{glib, CompositeTemplate, DropDown, Label, StringList};
use gtk::{glib, CompositeTemplate};
#[allow(non_snake_case)]
#[derive(Default, CompositeTemplate)]

View file

@ -1,9 +1,9 @@
pub mod settingBox;
pub mod settingBoxImpl;
pub mod cardEntry;
pub mod cardEntryImpl;
pub mod listEntry;
pub mod listEntryImpl;
pub mod popup;
pub mod popupImpl;
pub mod settingBox;
pub mod settingBoxImpl;
pub mod utils;
pub mod cardEntry;
pub mod cardEntryImpl;

View file

@ -16,4 +16,5 @@ impl SettingBox {
entry.append(child);
entry
}
}
}