|
@@ -848,6 +848,7 @@
|
848
|
848
|
}
|
849
|
849
|
log.setDisplayUnits(Units.Celsius);
|
850
|
850
|
graph.showC();
|
|
851
|
+ QSettings.setValue("temperatureUnit", "C");
|
851
|
852
|
});
|
852
|
853
|
var showF = findChildObject(this, 'showF');
|
853
|
854
|
showF.triggered.connect(function() {
|
|
@@ -857,7 +858,12 @@
|
857
|
858
|
}
|
858
|
859
|
log.setDisplayUnits(Units.Fahrenheit);
|
859
|
860
|
graph.showF();
|
|
861
|
+ QSettings.setValue("temperatureUnit", "F");
|
860
|
862
|
});
|
|
863
|
+ if(QSettings.value("temperatureUnit", "F") == "C")
|
|
864
|
+ {
|
|
865
|
+ showC.trigger();
|
|
866
|
+ }
|
861
|
867
|
var clear = findChildObject(this, 'clear');
|
862
|
868
|
clear.triggered.connect(log.clear);
|
863
|
869
|
clear.triggered.connect(graph.clear);
|