Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Oct 29, 2024
1 parent d0f5e0a commit d0ae180
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
6 changes: 4 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,12 @@ serde = { version = "1.0.152", features = ["derive"] }
freedesktop-desktop-entry = "0.7.5"

[profile.release]
# lto = "fat"
opt-level = 1
lto = "fat"


[workspace.metadata.cargo-machete]
ignored = ["libcosmic"]
[patch."https://github.com/pop-os/libcosmic"]
# [patch."https://github.com/pop-os/libcosmic"]
# cosmic-config = { git = "https://github.com/pop-os/libcosmic//" }
# libcosmic = { git = "https://github.com/pop-os/libcosmic//" }
# cosmic-config = { path = "../libcosmic/cosmic-config" }
Expand Down
20 changes: 10 additions & 10 deletions cosmic-app-list/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1613,16 +1613,16 @@ impl cosmic::Application for CosmicAppList {
content = content.width(suggested_size.0).height(suggested_size.1);
}

// let mut limits = Limits::NONE.min_width(1.).min_height(1.);
let mut limits = Limits::NONE.min_width(1.).min_height(1.);

// if let Some(b) = self.core.applet.suggested_bounds {
// if b.width as i32 > 0 {
// limits = limits.max_width(b.width);
// }
// if b.height as i32 > 0 {
// limits = limits.max_height(b.height);
// }
// }
if let Some(b) = self.core.applet.suggested_bounds {
if b.width as i32 > 0 {
limits = limits.max_width(b.width);
}
if b.height as i32 > 0 {
limits = limits.max_height(b.height);
}
}

self.core
.applet
Expand All @@ -1635,7 +1635,7 @@ impl cosmic::Application for CosmicAppList {
} else {
content.into()
})
// .limits(limits)
.limits(limits)
.into()
}

Expand Down
8 changes: 4 additions & 4 deletions cosmic-applet-notifications/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ tokio = { version = "1.36.0", features = [
"io-util",
"io-std",
] }
# cosmic-notifications-util = { git = "https://github.com/pop-os/cosmic-notifications" }
# cosmic-notifications-config = { git = "https://github.com/pop-os/cosmic-notifications" }
cosmic-notifications-util = { path = "../../cosmic-notifications-daemon/cosmic-notifications-util" }
cosmic-notifications-config = { path = "../../cosmic-notifications-daemon/cosmic-notifications-config" }
cosmic-notifications-util = { git = "https://github.com/pop-os/cosmic-notifications" }
cosmic-notifications-config = { git = "https://github.com/pop-os/cosmic-notifications" }
# cosmic-notifications-util = { path = "../../cosmic-notifications-daemon/cosmic-notifications-util" }
# cosmic-notifications-config = { path = "../../cosmic-notifications-daemon/cosmic-notifications-config" }
tracing = "0.1"
ron = "0.8"
sendfd = { version = "0.4", features = ["tokio"] }
Expand Down

0 comments on commit d0ae180

Please sign in to comment.