File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
book/listings/todo/8/window Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -387,11 +387,13 @@ impl Window {
387
387
388
388
// ANCHOR: setup_actions
389
389
// Create action to create new collection and add to action group "win"
390
- let action_new_list = gio:: SimpleAction :: new ( "new-collection" , None ) ;
391
- action_new_list. connect_activate ( clone ! ( @weak self as window => move |_, _| {
392
- window. new_collection( ) ;
393
- } ) ) ;
394
- self . add_action ( & action_new_list) ;
390
+ let action_new_collection = gio:: SimpleAction :: new ( "new-collection" , None ) ;
391
+ action_new_collection. connect_activate (
392
+ clone ! ( @weak self as window => move |_, _| {
393
+ window. new_collection( ) ;
394
+ } ) ,
395
+ ) ;
396
+ self . add_action ( & action_new_collection) ;
395
397
// ANCHOR_END: setup_actions
396
398
}
397
399
You can’t perform that action at this time.
0 commit comments