File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,15 +113,17 @@ impl super::View for UpgradeWindow {
113113 } => {
114114 ui. label ( "" ) ;
115115 ui. heading ( "New version available!" ) ;
116- ui. label ( format ! ( "v{latest} → current: v{current}" ) ) ;
116+ ui. label ( format ! ( "current: v{current}" ) ) ;
117+ ui. label ( format ! ( " → latest: v{latest}" ) ) ;
117118 ui. label ( "" ) ;
118- ui. horizontal ( |ui| {
119- if ui. button ( " Download " ) . clicked ( ) {
120- self . action = Some ( UpgradeAction :: Download ) ;
121- }
122- if ui. button ( " Later " ) . clicked ( ) {
119+ ui. with_layout ( egui:: Layout :: right_to_left ( egui:: Align :: BOTTOM ) , |ui| {
120+ ui. spacing_mut ( ) . item_spacing = egui:: vec2 ( 8.0 , 0.0 ) ;
121+ if ui. button ( "Later" ) . clicked ( ) {
123122 self . action = Some ( UpgradeAction :: Close ) ;
124123 }
124+ if ui. button ( "Download" ) . clicked ( ) {
125+ self . action = Some ( UpgradeAction :: Download ) ;
126+ }
125127 } ) ;
126128 }
127129
You can’t perform that action at this time.
0 commit comments