projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosuilib: Get the Eeprom download progress bar working again
[fw/altos]
/
altosui
/
AltosConfigPyroUI.java
diff --git
a/altosui/AltosConfigPyroUI.java
b/altosui/AltosConfigPyroUI.java
index dd4fb5055a92f353ae321e1b51928803f253f426..64336c8e06daa1ac0b5d72fedab5960ddd383762 100644
(file)
--- a/
altosui/AltosConfigPyroUI.java
+++ b/
altosui/AltosConfigPyroUI.java
@@
-285,9
+285,13
@@
public class AltosConfigPyroUI
"0.050", "0.100", "0.250", "0.500", "1.0", "2.0"
};
"0.050", "0.100", "0.250", "0.500", "1.0", "2.0"
};
+ boolean initializing;
+
public void set_pyro_firing_time(double new_pyro_firing_time) {
public void set_pyro_firing_time(double new_pyro_firing_time) {
+ initializing = true;
pyro_firing_time_value.setSelectedItem(Double.toString(new_pyro_firing_time));
pyro_firing_time_value.setEnabled(new_pyro_firing_time >= 0);
pyro_firing_time_value.setSelectedItem(Double.toString(new_pyro_firing_time));
pyro_firing_time_value.setEnabled(new_pyro_firing_time >= 0);
+ initializing = false;
}
public double get_pyro_firing_time() throws AltosConfigDataException {
}
public double get_pyro_firing_time() throws AltosConfigDataException {
@@
-301,23
+305,28
@@
public class AltosConfigPyroUI
}
public void set_dirty() {
}
public void set_dirty() {
- owner.set_dirty();
+ if (!initializing)
+ owner.set_dirty();
}
public void itemStateChanged(ItemEvent e) {
}
public void itemStateChanged(ItemEvent e) {
- owner.set_dirty();
+ if (!initializing)
+ owner.set_dirty();
}
public void changedUpdate(DocumentEvent e) {
}
public void changedUpdate(DocumentEvent e) {
- owner.set_dirty();
+ if (!initializing)
+ owner.set_dirty();
}
public void insertUpdate(DocumentEvent e) {
}
public void insertUpdate(DocumentEvent e) {
- owner.set_dirty();
+ if (!initializing)
+ owner.set_dirty();
}
public void removeUpdate(DocumentEvent e) {
}
public void removeUpdate(DocumentEvent e) {
- owner.set_dirty();
+ if (!initializing)
+ owner.set_dirty();
}
public void units_changed(boolean imperial_units) {
}
public void units_changed(boolean imperial_units) {