GUAC-634: Allow default value for local properties. Use default values within client and root UI.
This commit is contained in:
1 parent
ce4174ffba
commit
a049d2d0bf
4 files changed
+13
-14
No files matched your search
@@ -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