mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-09-16 22:59:16 +02:00
chore: Code cleanup
This commit is contained in:
parent
192dacb333
commit
cb3dd257f1
22 changed files with 121 additions and 106 deletions
|
@ -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]
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -16,4 +16,5 @@ impl SettingBox {
|
|||
entry.append(child);
|
||||
entry
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue