Browse Source

Green coffee sales unit selector setting remembered. Default changed to lb.

Neal Wilson 11 years ago
parent
commit
918939c86a
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      config/Windows/greensales.xml

+ 4
- 0
config/Windows/greensales.xml View File

@@ -27,6 +27,10 @@
27 27
 			unitBox.addItem("Kg");
28 28
 			unitBox.addItem("oz");
29 29
 			unitBox.addItem("lb");
30
+			unitBox.currentIndex = (QSettings.value("script/greensales_unit", unitBox.findText("lb")));
31
+			unitBox['currentIndexChanged(int)'].connect(function() {
32
+				QSettings.setValue("script/greensales_unit", unitBox.currentIndex);
33
+			});
30 34
 			var convertToPounds = function(w, u) {
31 35
 				switch(u)
32 36
 				{

Loading…
Cancel
Save