@@ -185,8 +185,7 @@ impl GpuPage {
185
185
content_grid. attach ( & new_grid, 0 , 0 as i32 , 100 , 12 ) ;
186
186
187
187
// Build title label & add to grid
188
- let label_value: String =
189
- String :: from ( "Please add a View using 'Add View' button" ) ;
188
+ let label_value: String = String :: from ( "Please add a View using 'Add View' button" ) ;
190
189
let new_title_label: Label = Label :: builder ( )
191
190
. label ( & label_value)
192
191
. name ( "default" )
@@ -464,7 +463,6 @@ impl GpuPage {
464
463
child_manager. set_property ( "row-span" , 2 ) ;
465
464
child_manager. set_property ( "column-span" , 2 ) ;
466
465
467
-
468
466
// Create add_view_button
469
467
let add_view_button: Button = Button :: builder ( )
470
468
. name ( "add_view_button" )
@@ -536,7 +534,8 @@ impl GpuPage {
536
534
} ) ) ;
537
535
538
536
// Set layout properties of button
539
- let child_manager: LayoutChild = grid_manager. layout_child ( & add_view_button) ;
537
+ let child_manager: LayoutChild =
538
+ grid_manager. layout_child ( & add_view_button) ;
540
539
child_manager. set_property ( "row-span" , 2 ) ;
541
540
child_manager. set_property ( "column-span" , 2 ) ;
542
541
}
@@ -563,8 +562,8 @@ impl GpuPage {
563
562
if props. len ( ) > 0 {
564
563
self . create_updater ( labels, props) ;
565
564
} // else {
566
- // println!("No properties, no callbacks!");
567
- // }
565
+ // println!("No properties, no callbacks!");
566
+ // }
568
567
569
568
// Replace current view stack
570
569
self . imp ( ) . replace_stack ( Some ( & new_stack) ) ;
@@ -675,7 +674,6 @@ impl GpuPage {
675
674
properties : Vec < String > ,
676
675
mut labels : Vec < Label > ,
677
676
) -> ( Grid , Vec < Label > ) {
678
-
679
677
// Load properties from struct
680
678
let properties_store: Arc < Mutex < Vec < String > > > = Arc :: new ( Mutex :: new ( properties) ) ;
681
679
0 commit comments