Skip to content

Commit

Permalink
fix pause button issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nxi committed Nov 21, 2024
1 parent a5e2af6 commit 00474f8
Showing 1 changed file with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,26 +87,26 @@ public void mouseDown(MouseEvent e) {
});
this.layout(true, true);
// Set UI status
// proxyListener = new SicsProxyListenerAdapter() {
//
// @Override
// public void disconnect() {
// handleSicsDisconnect();
// }
//
// @Override
// public void connect() {
// handleSicsConnect();
// }
//
// @Override
// public void setStatus(ServerStatus newStatus) {
// handleStatusChange(newStatus);
// }
//
// };
proxyListener = new SicsProxyListenerAdapter() {

@Override
public void disconnect() {
handleSicsDisconnect();
}

@Override
public void connect() {
handleSicsConnect();
}

@Override
public void setStatus(ServerStatus newStatus) {
handleStatusChange(newStatus);
}

};
ISicsProxy proxy = SicsManager.getSicsProxy();
// proxy.addProxyListener(proxyListener);
proxy.addProxyListener(proxyListener);

if (proxy.isConnected()) {
handleSicsConnect();
Expand Down Expand Up @@ -196,9 +196,9 @@ public void run() throws Exception {
private void runVeto(boolean vetoFlag) throws Exception {
ISicsProxy proxy = SicsManager.getSicsProxy();
if (vetoFlag) {
proxy.syncRun("pause on");
proxy.asyncRun("histmem veto on", null);
} else {
proxy.syncRun("pause off");
proxy.asyncRun("histmem veto off", null);
}
}

Expand Down

0 comments on commit 00474f8

Please sign in to comment.