mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-03-06 14:27:48 +00:00
Update configurator.sh with steam syncronization
This commit is contained in:
parent
a569bcb285
commit
edfcbe4840
|
@ -1134,8 +1134,46 @@ configurator_about_retrodeck_dialog() {
|
|||
}
|
||||
|
||||
configurator_add_steam() {
|
||||
python3 /app/libexec/steam-sync/steam-sync.py
|
||||
configurator_welcome_dialog
|
||||
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" \
|
||||
--text="Steam syncronization is current enabled. Do you want to disable it?\n\nThe already added shortcut will not be removed.\n"
|
||||
|
||||
if [ $? == 0 ] # User clicked "Yes"
|
||||
then
|
||||
disable_steam_sync
|
||||
else # User clicked "Cancel"
|
||||
configurator_welcome_dialog
|
||||
fi
|
||||
else
|
||||
zenity --question \
|
||||
--no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||
--title "RetroDECK Configurator - RetroDECK Steam Syncronization" \
|
||||
--text="Steam syncronization is current disabled. Do you want to enable it?\n\nAll the games marked as favorites will be syncronized with Steam thanks to BoilR.\nRemember to restart Steam each time to see the changes.\n"
|
||||
|
||||
if [ $? == 0 ]
|
||||
then
|
||||
enable_steam_sync
|
||||
else
|
||||
configurator_welcome_dialog
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
enable_steam_sync() {
|
||||
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" \
|
||||
--text="Steam syncronization enabled, restart RetroDECK to get effect."
|
||||
configurator_welcome_dialog
|
||||
}
|
||||
|
||||
disable_steam_sync() {
|
||||
set_setting_value $rd_conf "steam_sync" "false" retrodeck "options"
|
||||
touch /tmp/retrodeck_steam_sync_exit
|
||||
configurator_welcome_dialog
|
||||
}
|
||||
|
||||
configurator_version_history_dialog() {
|
||||
|
|
Loading…
Reference in a new issue