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
 			unitBox.addItem("Kg");
27
 			unitBox.addItem("Kg");
28
 			unitBox.addItem("oz");
28
 			unitBox.addItem("oz");
29
 			unitBox.addItem("lb");
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
 			var convertToPounds = function(w, u) {
34
 			var convertToPounds = function(w, u) {
31
 				switch(u)
35
 				switch(u)
32
 				{
36
 				{

Loading…
Cancel
Save