mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Revert "Show both the nominal and "real" size for an imperial cylinder"
This reverts commitadaeb506b7
. commita8e8d56ec0
("Tweak cylinder equipment tooltips") does a much better job allowing the user to know the true volume of the cylinder (given the gas entered) and clutters the UI a lot less.
This commit is contained in:
parent
a8e8d56ec0
commit
7f7c008247
1 changed files with 1 additions and 2 deletions
|
@ -38,10 +38,9 @@ static QString get_cylinder_string(cylinder_t *cyl)
|
|||
// liters: if we don't have a working pressure, we cannot
|
||||
// convert the cylinder size to cuft.
|
||||
if (wp.mbar && prefs.units.volume == units::CUFT) {
|
||||
double real_value = ml_to_cuft(gas_volume(cyl, wp));
|
||||
value = ml_to_cuft(ml) * bar_to_atm(wp.mbar / 1000.0);
|
||||
decimals = (value > 20.0) ? 0 : (value > 2.0) ? 1 : 2;
|
||||
unit = QString("(%1)%2").arg(real_value, 0, 'f', 0).arg(CylindersModel::tr("cuft"));
|
||||
unit = CylindersModel::tr("cuft");
|
||||
} else {
|
||||
value = ml / 1000.0;
|
||||
decimals = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue