chore: update libcosmic
This commit is contained in:
parent
cc8586e380
commit
4029f7b547
7 changed files with 158 additions and 91 deletions
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "cosmic-settings"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
license = "GPL-3.0-only"
|
||||
|
||||
[dependencies]
|
||||
|
|
@ -136,11 +136,7 @@ page-accessibility = [
|
|||
"dep:cosmic-settings-config",
|
||||
"dep:sctk",
|
||||
]
|
||||
page-about = [
|
||||
"dep:cosmic-settings-system",
|
||||
"dep:hostname1-zbus",
|
||||
"dep:zbus",
|
||||
]
|
||||
page-about = ["dep:cosmic-settings-system", "dep:hostname1-zbus", "dep:zbus"]
|
||||
page-bluetooth = [
|
||||
"dep:bluez-zbus",
|
||||
"dep:zbus",
|
||||
|
|
@ -162,19 +158,9 @@ page-networking = [
|
|||
"dep:zbus",
|
||||
]
|
||||
page-power = ["dep:upower_dbus", "dep:zbus"]
|
||||
page-region = [
|
||||
"gettext",
|
||||
"dep:locales-rs",
|
||||
"dep:locale1",
|
||||
"dep:zbus",
|
||||
]
|
||||
page-region = ["gettext", "dep:locales-rs", "dep:locale1", "dep:zbus"]
|
||||
page-sound = ["dep:cosmic-settings-subscriptions"]
|
||||
page-users = [
|
||||
"xdg-portal",
|
||||
"dep:accounts-zbus",
|
||||
"dep:zbus",
|
||||
"dep:zbus_polkit",
|
||||
]
|
||||
page-users = ["xdg-portal", "dep:accounts-zbus", "dep:zbus", "dep:zbus_polkit"]
|
||||
page-window-management = ["dep:cosmic-settings-config"]
|
||||
page-workspaces = ["dep:cosmic-comp-config"]
|
||||
|
||||
|
|
@ -184,10 +170,6 @@ ashpd = ["dep:ashpd"]
|
|||
dbus-config = ["libcosmic/dbus-config", "cosmic-config/dbus"]
|
||||
single-instance = ["libcosmic/single-instance"]
|
||||
test = []
|
||||
wayland = [
|
||||
"libcosmic/wayland",
|
||||
"dep:cosmic-panel-config",
|
||||
"dep:cosmic-randr"
|
||||
]
|
||||
wayland = ["libcosmic/wayland", "dep:cosmic-panel-config", "dep:cosmic-randr"]
|
||||
wgpu = ["libcosmic/wgpu"]
|
||||
xdg-portal = ["ashpd", "libcosmic/xdg-portal"]
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ pub fn main() -> color_eyre::Result<()> {
|
|||
color_eyre::install()?;
|
||||
|
||||
if std::env::var("RUST_SPANTRACE").is_err() {
|
||||
std::env::set_var("RUST_SPANTRACE", "0");
|
||||
unsafe { std::env::set_var("RUST_SPANTRACE", "0") };
|
||||
}
|
||||
|
||||
init_logger();
|
||||
|
|
|
|||
|
|
@ -463,7 +463,7 @@ impl Page {
|
|||
|
||||
if let Some(settings) = self.known_connections.get(&uuid) {
|
||||
let settings = match settings {
|
||||
ConnectionSettings::Vpn(ref settings) => settings,
|
||||
ConnectionSettings::Vpn(settings) => settings,
|
||||
ConnectionSettings::Wireguard { id } => {
|
||||
let connection_name = id.clone();
|
||||
return cosmic::task::future(async move {
|
||||
|
|
|
|||
|
|
@ -715,7 +715,7 @@ fn devices_view() -> Section<crate::pages::Message> {
|
|||
|
||||
fn is_connected(state: &NetworkManagerState, network: &AccessPoint) -> bool {
|
||||
state.active_conns.iter().any(|active| {
|
||||
if let ActiveConnectionInfo::WiFi { ref name, .. } = active {
|
||||
if let ActiveConnectionInfo::WiFi { name, .. } = active {
|
||||
*name == network.ssid.as_ref()
|
||||
} else {
|
||||
false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue