This commit is contained in:
gac-S_Changer
2019-01-23 17:11:32 +01:00
parent 378653e57e
commit d7b66eab3e
2 changed files with 9 additions and 6 deletions

View File

@@ -10,6 +10,7 @@ import ch.psi.pshell.device.DeviceAdapter;
import ch.psi.pshell.imaging.Renderer;
import ch.psi.pshell.imaging.RendererMode;
import ch.psi.pshell.imaging.Source;
import ch.psi.pshell.scripting.ViewPreference;
import ch.psi.pshell.ui.App;
import ch.psi.pshell.ui.Panel;
import ch.psi.utils.State;
@@ -241,11 +242,9 @@ public class MainPanel extends Panel {
Controller.getInstance().onTimer();
if (getState() == State.Ready) {
if (Boolean.TRUE.equals(Controller.getInstance().isPuckLoading())) {
getView().getStatusBar().setStatusMessage(PUCK_LOADING_STATUS);
} else {
if (PUCK_LOADING_STATUS.equals(getView().getStatusBar().getStatusLabel().getText())) {
getView().getStatusBar().setApplicationState(getState());
}
getContext().setPreference(ViewPreference.STATUS, PUCK_LOADING_STATUS);
} else {
getContext().setPreference(ViewPreference.STATUS, "Ready");
}
}
} catch (Exception ex) {