Consolidate steam_sync.sh sourcing

This commit is contained in:
icenine451 2025-03-25 08:54:14 -04:00
parent 080030ec7a
commit 5da28562d4
3 changed files with 1 additions and 2 deletions

View file

@ -52,6 +52,7 @@ source /app/libexec/prepare_component.sh
source /app/libexec/presets.sh
source /app/libexec/configurator_functions.sh
source /app/libexec/run_game.sh
source /app/libexec/steam_sync.sh
# Static variables
rd_conf="/var/config/retrodeck/retrodeck.cfg" # RetroDECK config file path

View file

@ -1189,7 +1189,6 @@ quit_retrodeck() {
# if steam sync is on do the magic
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/")"
) |
rd_zenity --progress \

View file

@ -1240,7 +1240,6 @@ enable_steam_sync() {
disable_steam_sync() {
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" \
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \