refactor: about page as a widget

This commit is contained in:
Eduardo Flores 2024-11-10 02:42:16 +01:00 committed by GitHub
parent 6f53b68be5
commit d8357d0ea3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 239 additions and 240 deletions

View file

@ -78,9 +78,6 @@ pub enum Message {
/// Tracks updates to window suggested size.
#[cfg(feature = "applet")]
SuggestedBounds(Option<iced::Size>),
#[cfg(feature = "desktop")]
/// Opens the provided URL.
OpenUrl(String),
}
#[derive(Default)]
@ -664,11 +661,6 @@ impl<T: Application> Cosmic<T> {
let core = self.app.core_mut();
core.applet.suggested_bounds = b;
}
#[cfg(feature = "desktop")]
Message::OpenUrl(url) => match open::that_detached(url) {
Ok(_) => (),
Err(err) => tracing::error!("{err}"),
},
_ => {}
}