From 1cd0b569b822df2faadbbe3b7c55299a39954b6d Mon Sep 17 00:00:00 2001 From: Htylol Date: Tue, 22 Jul 2025 07:48:01 +0500 Subject: [PATCH] gui_edit_db: Instead of disabling, used hiding settings --- data_from_portwine/scripts/functions_helper | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 9cc7b16c..8e06bffb 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -122,6 +122,7 @@ rm_from_array () { if [[ \$rm_names =~ \$element ]] ; then unset $array_name[\$count] $array_name=(\${$array_name[@]}) + ((count--)) fi ((count++)) done" @@ -5413,6 +5414,13 @@ gui_edit_db () { PW_USE_WINED3D_VULKAN PW_USE_SUPPLIED_DXVK_VKD3D PW_USE_NATIVE_WAYLAND PW_USE_DXVK_HDR ) + if check_wayland_session + then rm_from_array "PW_EDIT_DB_LIST" PW_USE_US_LAYOUT + else rm_from_array "PW_EDIT_DB_LIST" PW_USE_NATIVE_WAYLAND PW_USE_DXVK_HDR + fi + if [[ $PW_WINE_USE =~ (PROTON_LG|WINE_LG) ]] || [[ $PW_VULKAN_USE == "0" ]] ; then + rm_from_array "PW_EDIT_DB_LIST" PW_USE_SUPPLIED_DXVK_VKD3D + fi check_flatpak && rm_from_array "PW_EDIT_DB_LIST" PW_USE_RUNTIME # GALLIUM NINE @@ -5487,18 +5495,8 @@ gui_edit_db () { ;; esac - if [[ $PW_WINE_USE =~ (PROTON_LG|WINE_LG) ]] \ - || [[ $PW_VULKAN_USE == "0" ]] ; then - DISABLE_EDIT_DB_LIST+=" PW_USE_SUPPLIED_DXVK_VKD3D" - fi - [[ ! -e "/dev/ntsync" ]] && DISABLE_EDIT_DB_LIST+=" PW_USE_NTSYNC" - if check_wayland_session - then DISABLE_EDIT_DB_LIST+=" PW_USE_US_LAYOUT" - else DISABLE_EDIT_DB_LIST+=" PW_USE_NATIVE_WAYLAND PW_USE_DXVK_HDR" - fi - unset ADD_CHK_BOX_EDIT_DB for int_to_boole in "${PW_EDIT_DB_LIST[@]}" ; do if [[ "${!int_to_boole}" == "1" ]]