mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-11 23:47:42 +00:00
GUAC-634: Allow default value for local properties. Use default values within client and root UI.
This commit is contained in:
@@ -423,25 +423,18 @@ if (GuacamoleRootUI.session_state.getProperty("clipboard"))
|
||||
GuacamoleRootUI.fields.clipboard.value =
|
||||
GuacamoleRootUI.session_state.getProperty("clipboard");
|
||||
|
||||
/*
|
||||
* Default to true if auto-fit not specified
|
||||
*/
|
||||
|
||||
if (GuacamoleRootUI.session_state.getProperty("auto-fit") === undefined)
|
||||
GuacamoleRootUI.session_state.setProperty("auto-fit", true);
|
||||
|
||||
/*
|
||||
* Initialize auto-fit setting in UI
|
||||
*/
|
||||
|
||||
GuacamoleRootUI.settings.auto_fit.checked =
|
||||
GuacamoleRootUI.session_state.getProperty("auto-fit");
|
||||
GuacamoleRootUI.session_state.getProperty("auto-fit", true);
|
||||
|
||||
/*
|
||||
* Initialize disable-sound setting in UI
|
||||
*/
|
||||
GuacamoleRootUI.settings.disable_sound.checked =
|
||||
GuacamoleRootUI.session_state.getProperty("disable-sound");
|
||||
GuacamoleRootUI.session_state.getProperty("disable-sound", false);
|
||||
|
||||
/*
|
||||
* Set handler for logout
|
||||
|
Reference in New Issue
Block a user