mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-07-13 05:07:45 +02:00
chore: Code cleanup
This commit is contained in:
parent
959d1e735f
commit
736bcb8e4d
9 changed files with 67 additions and 42 deletions
|
@ -158,4 +158,3 @@ fn setRowName(selfImp: &WifiAddressEntryImpl) {
|
|||
};
|
||||
selfImp.resetAddressRow.set_title(&title);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
use crate::components::wifi::wifiBox;
|
||||
use ReSet_Lib::network::network::WifiDevice;
|
||||
use adw::{ActionRow, ComboRow, NavigationView, PreferencesGroup};
|
||||
use dbus::Path;
|
||||
use gtk::{prelude::*, StringList};
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, CompositeTemplate, Switch};
|
||||
use gtk::{prelude::*, StringList};
|
||||
use std::cell::RefCell;
|
||||
use std::collections::HashMap;
|
||||
use std::sync::{Arc, Mutex, RwLock};
|
||||
use ReSet_Lib::network::network::WifiDevice;
|
||||
|
||||
use crate::components::base::listEntry::ListEntry;
|
||||
use crate::components::wifi::wifiEntry::WifiEntry;
|
||||
|
@ -35,7 +35,7 @@ pub struct WifiBox {
|
|||
pub wifiEntries: Arc<Mutex<HashMap<Vec<u8>, Arc<WifiEntry>>>>,
|
||||
pub wifiEntriesPath: Arc<Mutex<HashMap<Path<'static>, Arc<WifiEntry>>>>,
|
||||
pub savedWifiEntries: Arc<Mutex<Vec<ListEntry>>>,
|
||||
pub resetWifiDevices: Arc<RwLock<HashMap<String, (WifiDevice,u32)>>>,
|
||||
pub resetWifiDevices: Arc<RwLock<HashMap<String, (WifiDevice, u32)>>>,
|
||||
pub resetCurrentWifiDevice: Arc<RefCell<WifiDevice>>,
|
||||
pub resetModelList: Arc<RwLock<StringList>>,
|
||||
pub resetModelIndex: Arc<RwLock<u32>>,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
use std::sync::atomic::AtomicBool;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ use adw::subclass::prelude::ActionRowImpl;
|
|||
use adw::ActionRow;
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, Button, CompositeTemplate, Image, Label};
|
||||
use std::cell::{RefCell, Cell};
|
||||
use std::cell::RefCell;
|
||||
use ReSet_Lib::network::network::{AccessPoint, WifiStrength};
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue