File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed
Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -453,15 +453,15 @@ impl SpectrometerGui {
453453 if !self . running
454454 && let Some ( ( _camera_index, camera_info) ) =
455455 self . camera_info . get_index ( self . config . camera_id )
456- {
457- for cf in & camera_info. formats {
458- ui. selectable_value (
459- & mut self . config . camera_format ,
460- Some ( * cf) ,
461- format ! ( "{}" , cf) ,
462- ) ;
463- }
456+ {
457+ for cf in & camera_info. formats {
458+ ui. selectable_value (
459+ & mut self . config . camera_format ,
460+ Some ( * cf) ,
461+ format ! ( "{}" , cf) ,
462+ ) ;
464463 }
464+ }
465465 } ) ;
466466
467467 let connect_button = ui. button ( if self . running { "Stop..." } else { "Start..." } ) ;
Original file line number Diff line number Diff line change @@ -108,10 +108,11 @@ impl SpectrumContainer {
108108
109109 // Clear buffer and zero reference on dimension change
110110 if let Some ( s) = self . spectrum_buffer . front ( )
111- && s. ncols ( ) != ncols {
112- self . spectrum_buffer . clear ( ) ;
113- self . zero_reference = None ;
114- }
111+ && s. ncols ( ) != ncols
112+ {
113+ self . spectrum_buffer . clear ( ) ;
114+ self . zero_reference = None ;
115+ }
115116
116117 if config. spectrum_calibration . linearize != Linearize :: Off {
117118 spectrum
You can’t perform that action at this time.
0 commit comments