mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
QML UI: switch UI to imperial units for users in the US
This is overly simplistic and it would be better to be able to override this in the settings, but frankly fewer settings are better and in most cases this is what the user wants. Fixes #987 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
701f91e4fe
commit
a9b53efce6
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
#include "subsurfacestartup.h"
|
||||
#include "subsurface-core/color.h"
|
||||
#include "qthelper.h"
|
||||
#include "helpers.h"
|
||||
|
||||
#include <QStringList>
|
||||
#include <QApplication>
|
||||
|
@ -52,6 +53,8 @@ int main(int argc, char **argv)
|
|||
git_libgit2_init();
|
||||
#endif
|
||||
setup_system_prefs();
|
||||
if (uiLanguage(0).contains("-US"))
|
||||
default_prefs.units = IMPERIAL_units;
|
||||
prefs = default_prefs;
|
||||
fill_profile_color();
|
||||
parse_xml_init();
|
||||
|
|
Loading…
Reference in a new issue