chore: Code cleanup

This commit is contained in:
Fabio Lenherr / DashieTM 2023-12-03 19:22:31 +01:00
parent 959d1e735f
commit 736bcb8e4d
9 changed files with 67 additions and 42 deletions

View file

@ -158,4 +158,3 @@ fn setRowName(selfImp: &WifiAddressEntryImpl) {
};
selfImp.resetAddressRow.set_title(&title);
}

View file

@ -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>>,

View file

@ -1,4 +1,3 @@
use std::sync::atomic::AtomicBool;
use std::sync::Arc;
use std::time::Duration;

View file

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