File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 75
75
<description translate =" no" >
76
76
<ul >
77
77
<li >Fixed create container button not working</li >
78
+ <li >Fixed continue button in welcome screen not working after having installed distrobox</li >
78
79
</ul >
79
80
</description >
80
81
</release >
Original file line number Diff line number Diff line change @@ -62,12 +62,21 @@ mod imp {
62
62
#[ template_callback]
63
63
fn continue_to_terminal_page ( & self , _: & gtk:: Button ) {
64
64
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 ( ) ;
71
80
}
72
81
#[ template_callback]
73
82
fn continue_to_app ( & self , _: & gtk:: Button ) {
You can’t perform that action at this time.
0 commit comments