This commit is contained in:
x03daop
2015-07-16 14:47:06 +02:00
parent c5ec081a1f
commit 314e355d1d

View File

@@ -144,11 +144,7 @@ public class XPSSpectrum extends Panel {
@Override
public void onValueChanged(Device device, Object o, Object o1) {
if (running){
Double total = scienta.getTotalChannels().take();
Double current = scienta.getCurrentChannel().take();
if ((total!=null) && (current!=null)){
getView().getStatusBar().setProgress(scienta.getProgress());
}
getView().getStatusBar().setProgress(scienta.getProgress());
}
}
};