Skip to content

Commit

Permalink
Viewer: Remove hidden ViewOnlyControl parameter
Browse files Browse the repository at this point in the history
This was implemented in 190ca33
(TurboVNC 2.0 beta1) for a customer whose portal exposed the option in
another way.  It is not a generally useful feature, and the company in
question is no longer using TurboVNC.
  • Loading branch information
dcommander committed Aug 1, 2024
1 parent d39ecc2 commit 8a7faf2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions java/com/turbovnc/rfb/Params.java
Original file line number Diff line number Diff line change
Expand Up @@ -679,11 +679,6 @@ public void save(String node) {
"Ignore all keyboard and mouse events in the viewer window and do not " +
"pass those events to the VNC server.", false);

// Set to 0 to disable the view-only checkbox in the Options dialog
public BoolParameter viewOnlyControl =
new BoolParameter("ViewOnlyControl", this, false,
null, true);

// DISPLAY PARAMETERS

private HeaderParameter displayHeader =
Expand Down
1 change: 0 additions & 1 deletion java/com/turbovnc/vncviewer/OptionsDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ class OptionsDialog extends Dialog implements ActionListener, ChangeListener,

viewOnly = new JCheckBox("View only (ignore mouse & keyboard)");
viewOnly.addItemListener(this);
viewOnly.setEnabled(params.viewOnlyControl.get());

Dialog.addGBComponent(viewOnly, inputPanel,
0, 0, 2, 1, 2, 2, 1, 0,
Expand Down

0 comments on commit 8a7faf2

Please sign in to comment.