Update dependencies
This commit is contained in:
parent
f5238e19b4
commit
4b4897878a
2 changed files with 188 additions and 175 deletions
351
Cargo.lock
generated
351
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
12
src/main.rs
12
src/main.rs
|
|
@ -227,8 +227,7 @@ pub enum Action {
|
||||||
Undo,
|
Undo,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl MenuAction for Action {
|
impl Action {
|
||||||
type Message = Message;
|
|
||||||
fn message(&self, entity_opt: Option<Entity>) -> Message {
|
fn message(&self, entity_opt: Option<Entity>) -> Message {
|
||||||
match self {
|
match self {
|
||||||
Self::Todo => Message::Todo,
|
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)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct Flags {
|
pub struct Flags {
|
||||||
config_handler: Option<cosmic_config::Config>,
|
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);
|
let mut row = widget::row::with_capacity(3).align_items(Alignment::Center);
|
||||||
row = row.push(widget::text(tab.title()));
|
row = row.push(widget::text(tab.title()));
|
||||||
row = row.push(widget::horizontal_space(Length::Fill));
|
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(
|
row = row.push(
|
||||||
widget::button::standard(fl!("save"))
|
widget::button::standard(fl!("save"))
|
||||||
.on_press(Message::Save(Some(*entity))),
|
.on_press(Message::Save(Some(*entity))),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue