feat: don't show the app name in infobar
This commit is contained in:
parent
97dfa89a4a
commit
3f994e6184
1 changed files with 6 additions and 4 deletions
|
|
@ -88,10 +88,12 @@ impl State {
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|error| widget::text(error).style(widget::text::danger));
|
.map(|error| widget::text(error).style(widget::text::danger));
|
||||||
|
|
||||||
let info = (self.infobar_shown && self.info.is_some()).then(|| {
|
let info = self.infobar_shown.then_some(()).and_then(|()| {
|
||||||
widget::container(widget::text(self.title()))
|
self.info.as_ref().map(|info| {
|
||||||
|
widget::container(widget::text(info))
|
||||||
.align_x(Alignment::End)
|
.align_x(Alignment::End)
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
widget::column![main, widget::row![error, info]]
|
widget::column![main, widget::row![error, info]]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue