Skip to content

Commit e0859c8

Browse files
author
Deren Vural
committed
trunk formatting
Signed-off-by: Deren Vural <[email protected]>
1 parent 8cc2cf7 commit e0859c8

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

src/gpu_page/mod.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ impl GpuPage {
185185
content_grid.attach(&new_grid, 0, 0 as i32, 100, 12);
186186

187187
// 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");
190189
let new_title_label: Label = Label::builder()
191190
.label(&label_value)
192191
.name("default")
@@ -464,7 +463,6 @@ impl GpuPage {
464463
child_manager.set_property("row-span", 2);
465464
child_manager.set_property("column-span", 2);
466465

467-
468466
// Create add_view_button
469467
let add_view_button: Button = Button::builder()
470468
.name("add_view_button")
@@ -536,7 +534,8 @@ impl GpuPage {
536534
}));
537535

538536
// 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);
540539
child_manager.set_property("row-span", 2);
541540
child_manager.set_property("column-span", 2);
542541
}
@@ -563,8 +562,8 @@ impl GpuPage {
563562
if props.len() > 0 {
564563
self.create_updater(labels, props);
565564
} // else {
566-
// println!("No properties, no callbacks!");
567-
// }
565+
// println!("No properties, no callbacks!");
566+
// }
568567

569568
// Replace current view stack
570569
self.imp().replace_stack(Some(&new_stack));
@@ -675,7 +674,6 @@ impl GpuPage {
675674
properties: Vec<String>,
676675
mut labels: Vec<Label>,
677676
) -> (Grid, Vec<Label>) {
678-
679677
// Load properties from struct
680678
let properties_store: Arc<Mutex<Vec<String>>> = Arc::new(Mutex::new(properties));
681679

src/modificationwindow/imp.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ impl ModificationWindow {
284284
// Get current components
285285
let mut current_components: Vec<ViewComponent> = self.view_components_list.take();
286286
let dropdowns: Vec<DropDown> = self.dropdowns.take();
287-
println!("number of stored dropdowns: `{}`", dropdowns.len()); //TEST
287+
// println!("number of stored dropdowns: `{}`", dropdowns.len()); //TEST
288288
// Update list using current state of dropdowns
289289
for index in 0..current_components.len() {
290-
println!("comp: `{}`", current_components[index].name); //TEST
291-
println!(" pos: `{}`", current_components[index].position); //TEST
290+
// println!("comp: `{}`", current_components[index].name); //TEST
291+
// println!(" pos: `{}`", current_components[index].position); //TEST
292292

293293
// Get current dropdown
294294
let current_dropdown: &DropDown = &dropdowns[index];
@@ -585,7 +585,11 @@ impl ModificationWindow {
585585
} else {
586586
// Create new viewconfig
587587
//UUID:POSITION:VIEW_TITLE
588-
let new_viewconfig: String = uuid.clone() + ":" + &self.new_view_id.clone().get().to_string() + ":" + &new_view_title;
588+
let new_viewconfig: String = uuid.clone()
589+
+ ":"
590+
+ &self.new_view_id.clone().get().to_string()
591+
+ ":"
592+
+ &new_view_title;
589593

590594
// Update viewconfigs item with new viewconfig
591595
stored_views_data.push(new_viewconfig);

0 commit comments

Comments
 (0)