diff options
| author | sam-anthony <samanthony6@protonmail.com> | 2022-03-08 19:55:08 -0330 |
|---|---|---|
| committer | sam-anthony <samanthony6@protonmail.com> | 2022-03-08 19:55:08 -0330 |
| commit | 90f42ad66feb6b77474d0da267d572eca16e2826 (patch) | |
| tree | a35319f2457e2e65bf8ff4536e142b7211fb09b9 /src/app.rs | |
| parent | d286ed3eb877365c01f7a7ec56de9a0dc84bab2e (diff) | |
| download | volute-90f42ad66feb6b77474d0da267d572eca16e2826.zip | |
switchable pressure unit
Diffstat (limited to 'src/app.rs')
| -rw-r--r-- | src/app.rs | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,9 +1,14 @@ -use crate::input::{InputParam, Row}; +use crate::{ + input::{InputParam, Row}, + unit_of_measurement::pressure, +}; pub struct App { rows: Vec<Row>, selected_row: usize, selected_column: InputParam, + + pub pressure_unit: pressure::Unit, } impl App { @@ -72,7 +77,8 @@ impl Default for App { App { rows: vec![Row::default()], selected_row: 0, - selected_column: InputParam::Rpm(String::new()), + selected_column: InputParam::Rpm(0), + pressure_unit: pressure::Unit::KiloPascal, } } } |