Browse Source

Remember unit in New Batch window

Neal Wilson 8 years ago
parent
commit
b3b71afbc1
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      config/Windows/newbatch.xml

+ 3
- 0
config/Windows/newbatch.xml View File

@@ -69,6 +69,9 @@
69 69
             unitBox.addItem("oz");
70 70
             unitBox.addItem("lb");
71 71
             unitBox.currentIndex = (QSettings.value("script/batch_unit", unitBox.findText("lb")));
72
+            unitBox['currentIndexChanged(int)'].connect(function() {
73
+                QSettings.setValue("script/batch_unit", unitBox.currentIndex);
74
+            });
72 75
             var machine = findChildObject(this, "machine");
73 76
             machine.setText(selectedRoasterName + " (" + selectedRoasterID + ")");
74 77
             var newMenu = findChildObject(this, 'new');

Loading…
Cancel
Save