fix: suggestions

This commit is contained in:
Eduardo Flores 2024-11-09 17:34:02 +01:00
parent 8c425cc6d4
commit ed5fe4bccc
4 changed files with 3 additions and 5 deletions

View file

@ -6,7 +6,7 @@
use cosmic::app::{Core, Settings, Task};
use cosmic::iced::widget::column;
use cosmic::iced_core::Size;
use cosmic::widget::{self, nav_bar, About};
use cosmic::widget::{self, about::About, nav_bar};
use cosmic::{executor, iced, ApplicationExt, Element};
/// Runs application with these settings

2
iced

@ -1 +1 @@
Subproject commit 3297263977365a5d7e4c4cd9bbc13613b674763b
Subproject commit a7e035cd852ab13ce0ef04671c1e683fc343aff6

View file

@ -8,7 +8,6 @@ use {
std::collections::BTreeMap,
};
#[cfg(feature = "desktop")]
#[derive(Debug, Default, Clone, derive_setters::Setters)]
#[setters(prefix = "set_", into, strip_option)]
/// Information about the application.
@ -126,7 +125,6 @@ impl About {
}
}
#[cfg(feature = "desktop")]
/// Constructs the widget for the about section.
pub fn about<'a, Message: Clone + 'static>(
about: &'a About,

View file

@ -370,4 +370,4 @@ pub use iced::widget::markdown;
pub mod about;
#[cfg(feature = "desktop")]
#[doc(inline)]
pub use about::{about, About};
pub use about::about;