File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ fork = "0.1"
37
37
[build-dependencies ]
38
38
vergen = { version = " 8" , features = [" git" , " gitcl" ] }
39
39
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" }
42
42
43
43
# [patch."https://github.com/pop-os/libcosmic.git"]
44
44
# libcosmic = { path = "../libcosmic" }
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ pub enum Message {
35
35
OpenCalendarDialog ,
36
36
SetDueDate ( NaiveDate ) ,
37
37
SubTaskEditDone ,
38
- EditMode ( bool ) ,
39
38
}
40
39
41
40
pub enum Command {
@@ -75,9 +74,6 @@ impl Details {
75
74
pub fn update ( & mut self , message : Message ) -> Vec < Command > {
76
75
let mut commands = vec ! [ ] ;
77
76
match message {
78
- Message :: EditMode ( is_editable) => {
79
- println ! ( "{is_editable}" ) ;
80
- }
81
77
Message :: SetTitle ( title) => {
82
78
if let Some ( ref mut task) = & mut self . task {
83
79
task. title = title. clone ( ) ;
@@ -178,11 +174,9 @@ impl Details {
178
174
. id( widget:: Id :: new( "sub_task_input" ) )
179
175
. on_input( move |title| Message :: SetSubTaskTitle ( i, title) )
180
176
. on_submit( Message :: SubTaskEditDone )
181
- . editable( )
182
- . trailing_icon( widget:: button( get_icon( "edit-symbolic" , 16 ) ) . into( ) )
183
- . on_toggle_edit( Message :: EditMode )
184
177
. into( ) ,
185
178
widget:: button( config:: get_icon( "user-trash-full-symbolic" , 18 ) )
179
+ . padding( space_xxs)
186
180
. style( widget:: button:: Style :: Destructive )
187
181
. on_press( Message :: DeleteSubTask ( i) )
188
182
. into( ) ,
You can’t perform that action at this time.
0 commit comments