mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	cleanup: don't save PASCAL pressure units to git
The way I understand, the PASCAL pressure unit is used to parse obscure dive logs. However, there is no support in the UI for using Pa as pressure unit. Therefore remove reading / writing this unit to git divelogs. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									e943065977
								
							
						
					
					
						commit
						18acb85a01
					
				
					 2 changed files with 1 additions and 3 deletions
				
			
		|  | @ -2972,8 +2972,6 @@ void set_informational_units(const char *units) | |||
| 			git_prefs.units.pressure = BAR; | ||||
| 		if (strstr(units, "PSI")) | ||||
| 			git_prefs.units.pressure = PSI; | ||||
| 		if (strstr(units, "PASCAL")) | ||||
| 			git_prefs.units.pressure = PASCALS; | ||||
| 		if (strstr(units, "CELSIUS")) | ||||
| 			git_prefs.units.temperature = CELSIUS; | ||||
| 		if (strstr(units, "FAHRENHEIT")) | ||||
|  |  | |||
|  | @ -842,7 +842,7 @@ static void save_units(void *_b) | |||
| 		put_format(b, "units PERSONALIZE %s %s %s %s %s %s\n", | ||||
| 			   prefs.units.length == METERS ? "METERS" : "FEET", | ||||
| 			   prefs.units.volume == LITER ? "LITER" : "CUFT", | ||||
| 			   prefs.units.pressure == BAR ? "BAR" : prefs.units.pressure == PSI ? "PSI" : "PASCAL", | ||||
| 			   prefs.units.pressure == BAR ? "BAR" : "PSI", | ||||
| 			   prefs.units.temperature == CELSIUS ? "CELSIUS" : prefs.units.temperature == FAHRENHEIT ? "FAHRENHEIT" : "KELVIN", | ||||
| 			   prefs.units.weight == KG ? "KG" : "LBS", | ||||
| 			   prefs.units.vertical_speed_time == SECONDS ? "SECONDS" : "MINUTES"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue