network: Don't show SSID multiple times, and make sure it's sorted

This commit is contained in:
Ian Douglas Scott 2022-06-28 14:10:07 -07:00
parent 14101dc7db
commit 3782df1e96
3 changed files with 22 additions and 14 deletions

View file

@ -7,10 +7,10 @@ pub mod task;
pub mod ui;
pub mod widgets;
use gtk4::{glib, gio::ApplicationFlags, prelude::*, Orientation, Separator};
use cosmic_panel_config::config::{CosmicPanelConfig, XdgWrapperConfig};
use gtk4::{gio::ApplicationFlags, glib, prelude::*, Orientation, Separator};
use once_cell::sync::Lazy;
use tokio::runtime::Runtime;
use cosmic_panel_config::config::{CosmicPanelConfig, XdgWrapperConfig};
static RT: Lazy<Runtime> = Lazy::new(|| Runtime::new().expect("failed to build tokio runtime"));