# HG changeset patch # User mir3636 # Date 1470300652 -32400 # Node ID 126b84644ca7fc0edb496fc11621342eece8af70 # Parent c1b4befc59339f38d5a324d74f3942ed2984d479 fix setVisiblity on node failure diff -r c1b4befc5933 -r 126b84644ca7 src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java --- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java Wed Aug 03 20:58:36 2016 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java Thu Aug 04 17:50:52 2016 +0900 @@ -185,7 +185,7 @@ presenter.successfulRfbConnection(); if (myRfb.hasViewer()) { // hide VNC server's view to prevent video feed back. - boolean visibility = presenter.getReconnectingId() != myRfb.getId(); + boolean visibility = (myRfb.getSharingId() != myRfb.getId()); viewerWindow.setVisible(visibility); if (previousViewerWindow != null) previousViewerWindow.setVisible(false); diff -r c1b4befc5933 -r 126b84644ca7 src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java --- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Wed Aug 03 20:58:36 2016 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Thu Aug 04 17:50:52 2016 +0900 @@ -191,9 +191,10 @@ if(viewer.getRfb().isTreeManager() || viewer.getCuiVersion()) { frame.setVisible(false); viewer.setCuiVersion(false); - } else - frame.setVisible(true); - //frame.setVisible(false); + } else { + TreeRFBProto myRfb = viewer.getRfb(); + frame.setVisible(myRfb.getSharingId() != myRfb.getId()); + } frame.validate(); } else { appletWindow.setLayout(new BorderLayout(0, 0));