File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
examples/list_view_apps_launcher Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ fn build_ui(app: >k::Application) {
72
72
let app_info = model. item ( position) . and_downcast :: < gio:: AppInfo > ( ) . unwrap ( ) ;
73
73
74
74
let context = list_view. display ( ) . app_launch_context ( ) ;
75
- if let Err ( err) = app_info. launch ( & [ ] , Some ( & context) ) {
75
+ if let Err ( err) = app_info. launch ( None , Some ( & context) ) {
76
76
let parent_window = list_view. root ( ) . and_downcast :: < gtk:: Window > ( ) . unwrap ( ) ;
77
77
78
78
gtk:: AlertDialog :: builder ( )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ impl Extend<&'static str> for StringList {
14
14
self . splice (
15
15
self . n_items ( ) ,
16
16
0 ,
17
- iter. into_iter ( ) . collect :: < Vec < _ > > ( ) . as_slice ( ) ,
17
+ Some ( iter. into_iter ( ) . collect :: < Vec < _ > > ( ) . as_slice ( ) ) ,
18
18
) ;
19
19
}
20
20
}
You can’t perform that action at this time.
0 commit comments