From ac3d60cae186bb040399f77758a1fc6c02b68219 Mon Sep 17 00:00:00 2001 From: Maxetto Date: Fri, 5 Sep 2025 11:49:16 +0200 Subject: [PATCH] Fix Hide CM and Remove Wallpaper options --- rdgenerator/views.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/rdgenerator/views.py b/rdgenerator/views.py index ccf6242..bcf47fe 100644 --- a/rdgenerator/views.py +++ b/rdgenerator/views.py @@ -122,11 +122,9 @@ def generator_view(request): decodedCustom['default-settings']['theme'] = theme elif themeDorO == "override": decodedCustom['override-settings']['theme'] = theme - #decodedCustom['approve-mode'] = passApproveMode decodedCustom['enable-lan-discovery'] = 'N' if denyLan else 'Y' #decodedCustom['direct-server'] = 'Y' if enableDirectIP else 'N' decodedCustom['allow-auto-disconnect'] = 'Y' if autoClose else 'N' - decodedCustom['allow-remove-wallpaper'] = 'Y' if removeWallpaper else 'N' if permissionsDorO == "default": decodedCustom['default-settings']['access-mode'] = permissionsType 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']['verification-method'] = 'use-permanent-password' if hidecm else 'use-both-passwords' 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: decodedCustom['override-settings']['access-mode'] = permissionsType 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-block-input'] = 'Y' if enableBlockingInput 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(): k, value = line.split('=') @@ -392,4 +397,4 @@ def save_custom_client(request): for chunk in file.chunks(): f.write(chunk) - return HttpResponse("File saved successfully!") \ No newline at end of file + return HttpResponse("File saved successfully!")