Fix warnings

This commit is contained in:
Jeremy Soller 2024-01-11 11:40:22 -07:00
parent 3f09e17156
commit 2a679ab96f
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
3 changed files with 2 additions and 3 deletions

View file

@ -983,7 +983,7 @@ impl Application for App {
}
fn header_start(&self) -> Vec<Element<Self::Message>> {
vec![menu_bar(&self.config).into()]
vec![menu_bar().into()]
}
/// Creates a view after each update.

View file

@ -80,7 +80,7 @@ pub fn context_menu<'a>(config: &Config, entity: segmented_button::Entity) -> El
.into()
}
pub fn menu_bar<'a>(config: &Config) -> Element<'a, Message> {
pub fn menu_bar<'a>() -> Element<'a, Message> {
//TODO: port to libcosmic
let menu_root = |label| {
widget::button(widget::text(label))

View file

@ -343,7 +343,6 @@ where
let mut hover = false;
if let Some(p) = cursor_position.position_in(layout.bounds()) {
let x = p.x - self.padding.left;
let y = p.y - self.padding.top;
if x >= scrollbar_rect.x && x < (scrollbar_rect.x + scrollbar_rect.width) {
hover = true;
}