fix(applet): fixes for recent updates

This commit is contained in:
Ashley Wulber 2025-03-21 12:23:46 -04:00 committed by GitHub
parent 0aa518984e
commit cb682be3c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -108,7 +108,7 @@ impl Context {
#[must_use]
pub fn suggested_size(&self, is_symbolic: bool) -> (u16, u16) {
match &self.size {
Size::PanelSize(ref size) => {
Size::PanelSize(size) => {
let s = size.get_applet_icon_size(is_symbolic) as u16;
(s, s)
}
@ -142,7 +142,7 @@ impl Context {
#[must_use]
pub fn suggested_padding(&self, is_symbolic: bool) -> u16 {
match &self.size {
Size::PanelSize(ref size) => size.get_applet_padding(is_symbolic),
Size::PanelSize(size) => size.get_applet_padding(is_symbolic),
Size::Hardcoded(_) => 8,
}
}

View file

@ -536,7 +536,6 @@ pub fn update<
let on_close = surface::action::destroy_popup(id);
let on_surface_action_clone = on_surface_action.clone();
let translation = layout.virtual_offset();
dbg!(translation);
let get_popup_action = surface::action::simple_popup::<
AppMessage,
Box<