Skip to content

Commit 85664b4

Browse files
committed
Remove editable_input
1 parent 09688c6 commit 85664b4

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ fork = "0.1"
3737
[build-dependencies]
3838
vergen = { version = "8", features = ["git", "gitcl"] }
3939

40-
[patch."https://github.com/pop-os/libcosmic.git"]
41-
libcosmic = { git = "https://github.com/edfloreshz/libcosmic.git", branch = "editable_input_internal" }
40+
#[patch."https://github.com/pop-os/libcosmic.git"]
41+
#libcosmic = { git = "https://github.com/edfloreshz/libcosmic.git", branch = "editable_input_internal" }
4242

4343
#[patch."https://github.com/pop-os/libcosmic.git"]
4444
#libcosmic = { path = "../libcosmic" }

src/details.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ pub enum Message {
3535
OpenCalendarDialog,
3636
SetDueDate(NaiveDate),
3737
SubTaskEditDone,
38-
EditMode(bool),
3938
}
4039

4140
pub enum Command {
@@ -75,9 +74,6 @@ impl Details {
7574
pub fn update(&mut self, message: Message) -> Vec<Command> {
7675
let mut commands = vec![];
7776
match message {
78-
Message::EditMode(is_editable) => {
79-
println!("{is_editable}");
80-
}
8177
Message::SetTitle(title) => {
8278
if let Some(ref mut task) = &mut self.task {
8379
task.title = title.clone();
@@ -178,11 +174,9 @@ impl Details {
178174
.id(widget::Id::new("sub_task_input"))
179175
.on_input(move |title| Message::SetSubTaskTitle(i, title))
180176
.on_submit(Message::SubTaskEditDone)
181-
.editable()
182-
.trailing_icon(widget::button(get_icon("edit-symbolic", 16)).into())
183-
.on_toggle_edit(Message::EditMode)
184177
.into(),
185178
widget::button(config::get_icon("user-trash-full-symbolic", 18))
179+
.padding(space_xxs)
186180
.style(widget::button::Style::Destructive)
187181
.on_press(Message::DeleteSubTask(i))
188182
.into(),

0 commit comments

Comments
 (0)