From ea4b88a9b85254d62e2833de4c27eda5346bd253 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 29 Jan 2025 11:26:15 +0900 Subject: [PATCH] STEAM_SYNC: a restart of RetroDECK is not needed now --- functions/other_functions.sh | 2 +- tools/configurator.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/other_functions.sh b/functions/other_functions.sh index c1e6748c..b77c8234 100644 --- a/functions/other_functions.sh +++ b/functions/other_functions.sh @@ -923,7 +923,7 @@ quit_retrodeck() { pkill -f "es-de" # if steam sync is on do the magic - if [[ $steam_sync == "true" ]]; then + if [[ $(get_setting_value "$rd_conf" "steam_sync" retrodeck "options") == "true" ]]; then ( source /app/libexec/steam_sync.sh add_to_steam "$(ls "$rdhome/ES-DE/gamelists/")" diff --git a/tools/configurator.sh b/tools/configurator.sh index 88c7cef2..1a0bd003 100755 --- a/tools/configurator.sh +++ b/tools/configurator.sh @@ -1343,7 +1343,7 @@ configurator_about_retrodeck_dialog() { } configurator_add_steam() { - if [[ $(get_setting_value $rd_conf "steam_sync" retrodeck "options") == "true" ]]; then + if [[ $(get_setting_value "$rd_conf" "steam_sync" retrodeck "options") == "true" ]]; then zenity --question \ --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ --title "RetroDECK Configurator - RetroDECK Steam Syncronization" \ @@ -1371,7 +1371,7 @@ configurator_add_steam() { } enable_steam_sync() { - set_setting_value $rd_conf "steam_sync" "true" retrodeck "options" + set_setting_value "$rd_conf" "steam_sync" "true" retrodeck "options" zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap --ok-label="OK" \ --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ --title "RetroDECK Configurator - RetroDECK Steam Syncronization" \ @@ -1380,7 +1380,7 @@ enable_steam_sync() { } disable_steam_sync() { - set_setting_value $rd_conf "steam_sync" "false" retrodeck "options" + set_setting_value "$rd_conf" "steam_sync" "false" retrodeck "options" source /app/libexec/steam_sync.sh remove_from_steam zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap --ok-label="OK" \