refactor: about page as a widget
This commit is contained in:
parent
6f53b68be5
commit
d8357d0ea3
8 changed files with 239 additions and 240 deletions
|
|
@ -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}"),
|
||||
},
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue