Update dependencies

This commit is contained in:
Jeremy Soller 2024-05-28 19:12:09 -06:00
parent f5238e19b4
commit 4b4897878a
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
2 changed files with 188 additions and 175 deletions

351
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -227,8 +227,7 @@ pub enum Action {
Undo,
}
impl MenuAction for Action {
type Message = Message;
impl Action {
fn message(&self, entity_opt: Option<Entity>) -> Message {
match self {
Self::Todo => Message::Todo,
@ -278,6 +277,13 @@ impl MenuAction for Action {
}
}
impl MenuAction for Action {
type Message = Message;
fn message(&self) -> Message {
self.message(None)
}
}
#[derive(Clone, Debug)]
pub struct Flags {
config_handler: Option<cosmic_config::Config>,
@ -1498,7 +1504,7 @@ impl Application for App {
let mut row = widget::row::with_capacity(3).align_items(Alignment::Center);
row = row.push(widget::text(tab.title()));
row = row.push(widget::horizontal_space(Length::Fill));
if let Some(path) = &tab.path_opt {
if let Some(_path) = &tab.path_opt {
row = row.push(
widget::button::standard(fl!("save"))
.on_press(Message::Save(Some(*entity))),