mirror of
https://github.com/bryangerlach/rdgen.git
synced 2025-11-29 08:33:23 +00:00
Fix Hide CM and Remove Wallpaper options
This commit is contained in:
@@ -122,11 +122,9 @@ def generator_view(request):
|
|||||||
decodedCustom['default-settings']['theme'] = theme
|
decodedCustom['default-settings']['theme'] = theme
|
||||||
elif themeDorO == "override":
|
elif themeDorO == "override":
|
||||||
decodedCustom['override-settings']['theme'] = theme
|
decodedCustom['override-settings']['theme'] = theme
|
||||||
#decodedCustom['approve-mode'] = passApproveMode
|
|
||||||
decodedCustom['enable-lan-discovery'] = 'N' if denyLan else 'Y'
|
decodedCustom['enable-lan-discovery'] = 'N' if denyLan else 'Y'
|
||||||
#decodedCustom['direct-server'] = 'Y' if enableDirectIP else 'N'
|
#decodedCustom['direct-server'] = 'Y' if enableDirectIP else 'N'
|
||||||
decodedCustom['allow-auto-disconnect'] = 'Y' if autoClose else 'N'
|
decodedCustom['allow-auto-disconnect'] = 'Y' if autoClose else 'N'
|
||||||
decodedCustom['allow-remove-wallpaper'] = 'Y' if removeWallpaper else 'N'
|
|
||||||
if permissionsDorO == "default":
|
if permissionsDorO == "default":
|
||||||
decodedCustom['default-settings']['access-mode'] = permissionsType
|
decodedCustom['default-settings']['access-mode'] = permissionsType
|
||||||
decodedCustom['default-settings']['enable-keyboard'] = 'Y' if enableKeyboard else 'N'
|
decodedCustom['default-settings']['enable-keyboard'] = 'Y' if enableKeyboard else 'N'
|
||||||
@@ -142,6 +140,8 @@ def generator_view(request):
|
|||||||
decodedCustom['default-settings']['hide-cm'] = 'Y' if hidecm else 'N'
|
decodedCustom['default-settings']['hide-cm'] = 'Y' if hidecm else 'N'
|
||||||
decodedCustom['default-settings']['verification-method'] = 'use-permanent-password' if hidecm else 'use-both-passwords'
|
decodedCustom['default-settings']['verification-method'] = 'use-permanent-password' if hidecm else 'use-both-passwords'
|
||||||
decodedCustom['default-settings']['approve-mode'] = passApproveMode
|
decodedCustom['default-settings']['approve-mode'] = passApproveMode
|
||||||
|
decodedCustom['default-settings']['allow-hide-cm'] = 'Y' if hidecm else 'N'
|
||||||
|
decodedCustom['default-settings']['allow-remove-wallpaper'] = 'Y' if removeWallpaper else 'N'
|
||||||
else:
|
else:
|
||||||
decodedCustom['override-settings']['access-mode'] = permissionsType
|
decodedCustom['override-settings']['access-mode'] = permissionsType
|
||||||
decodedCustom['override-settings']['enable-keyboard'] = 'Y' if enableKeyboard else 'N'
|
decodedCustom['override-settings']['enable-keyboard'] = 'Y' if enableKeyboard else 'N'
|
||||||
@@ -153,6 +153,11 @@ def generator_view(request):
|
|||||||
decodedCustom['override-settings']['enable-record-session'] = 'Y' if enableRecording else 'N'
|
decodedCustom['override-settings']['enable-record-session'] = 'Y' if enableRecording else 'N'
|
||||||
decodedCustom['override-settings']['enable-block-input'] = 'Y' if enableBlockingInput else 'N'
|
decodedCustom['override-settings']['enable-block-input'] = 'Y' if enableBlockingInput else 'N'
|
||||||
decodedCustom['override-settings']['allow-remote-config-modification'] = 'Y' if enableRemoteModi else 'N'
|
decodedCustom['override-settings']['allow-remote-config-modification'] = 'Y' if enableRemoteModi else 'N'
|
||||||
|
decodedCustom['override-settings']['direct-server'] = 'Y' if enableDirectIP else 'N'
|
||||||
|
decodedCustom['override-settings']['verification-method'] = 'use-permanent-password' if hidecm else 'use-both-passwords'
|
||||||
|
decodedCustom['override-settings']['approve-mode'] = passApproveMode
|
||||||
|
decodedCustom['override-settings']['allow-hide-cm'] = 'Y' if hidecm else 'N'
|
||||||
|
decodedCustom['override-settings']['allow-remove-wallpaper'] = 'Y' if removeWallpaper else 'N'
|
||||||
|
|
||||||
for line in defaultManual.splitlines():
|
for line in defaultManual.splitlines():
|
||||||
k, value = line.split('=')
|
k, value = line.split('=')
|
||||||
|
|||||||
Reference in New Issue
Block a user