Neal Wilson 9 years ago
parent
commit
d235bf9c09
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      config/Windows/productionroaster.xml

+ 6
- 0
config/Windows/productionroaster.xml View File

@@ -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);

Loading…
Cancel
Save