core/settings: removed unnecessary if

prefs.unit_system is set at the top, so no need to set it again.

Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2020-01-08 09:34:37 +01:00 committed by Dirk Hohndel
parent ed4e7e3fc4
commit 77352751fa

View file

@ -69,8 +69,6 @@ void qPrefUnits::set_unit_system(unit_system_values value)
// because it sets all of prefs.units without calling the
// setters
prefs.units = IMPERIAL_units;
} else {
prefs.unit_system = PERSONALIZE;
}
disk_unit_system(true);
emit instance()->unit_systemChanged(value);