File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,21 @@ mod imp {
6262 #[ template_callback]
6363 fn continue_to_terminal_page ( & self , _: & gtk:: Button ) {
6464 let obj = self . obj ( ) ;
65- if let Some ( e) = obj. root_store ( ) . distrobox_version ( ) . error ( ) {
66- obj. set_distrobox_error ( Some ( e. as_str ( ) ) ) ;
67- } else {
68- self . carousel
69- . scroll_to ( & * obj. imp ( ) . terminal_preferences_page , true ) ;
70- }
65+ let obj = obj. clone ( ) ;
66+ obj. root_store ( ) . distrobox_version ( )
67+ . connect_loading_notify ( move |resource| {
68+ if resource. loading ( ) {
69+ return
70+ }
71+ if let Some ( e) = resource. error ( ) {
72+ obj. set_distrobox_error ( Some ( e. as_str ( ) ) ) ;
73+ } else {
74+ obj. imp ( ) . carousel
75+ . scroll_to ( & * obj. imp ( ) . terminal_preferences_page , true ) ;
76+ }
77+ } ) ;
78+ self . obj ( ) . root_store ( ) . distrobox_version ( ) . reload ( ) ;
79+ self . obj ( ) . root_store ( ) . load_containers ( ) ;
7180 }
7281 #[ template_callback]
7382 fn continue_to_app ( & self , _: & gtk:: Button ) {
You can’t perform that action at this time.
0 commit comments