mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
Add Zenity Configurator menu to change logging level
This commit is contained in:
parent
ea673bbda4
commit
69e1fe868d
|
@ -77,6 +77,7 @@ rd_zenity --progress --no-cancel --pulsate --auto-close \
|
||||||
# - Add RetroDECK to Steam
|
# - Add RetroDECK to Steam
|
||||||
# - M3U Multi-File Validator
|
# - M3U Multi-File Validator
|
||||||
# - Repair RetroDECK paths
|
# - Repair RetroDECK paths
|
||||||
|
# - Change logging level
|
||||||
# - Ponzu: Remove Yuzu
|
# - Ponzu: Remove Yuzu
|
||||||
# - Ponzu: Remove Citra
|
# - Ponzu: Remove Citra
|
||||||
# - Steam Sync
|
# - Steam Sync
|
||||||
|
@ -444,6 +445,7 @@ configurator_tools_dialog() {
|
||||||
"Add RetroDECK to Steam" "Add RetroDECK shortcut to Steam. Steam restart required."
|
"Add RetroDECK to Steam" "Add RetroDECK shortcut to Steam. Steam restart required."
|
||||||
"M3U Multi-File Validator" "Verify the proper structure of multi-file or multi-disc games."
|
"M3U Multi-File Validator" "Verify the proper structure of multi-file or multi-disc games."
|
||||||
"Repair RetroDECK Paths" "Repair RetroDECK folder path configs for unexpectedly missing folders."
|
"Repair RetroDECK Paths" "Repair RetroDECK folder path configs for unexpectedly missing folders."
|
||||||
|
"Change Logging Level" "Change the RetroDECK logging level, for debugging purposes"
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $(get_setting_value "$rd_conf" "kiroi_ponzu" "retrodeck" "options") == "true" ]]; then
|
if [[ $(get_setting_value "$rd_conf" "kiroi_ponzu" "retrodeck" "options") == "true" ]]; then
|
||||||
|
@ -608,6 +610,46 @@ configurator_tools_dialog() {
|
||||||
configurator_tools_dialog
|
configurator_tools_dialog
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"Change Logging Level" )
|
||||||
|
log i "Configurator: opening \"$choice\" menu"
|
||||||
|
choice=$(rd_zenity --list --title="RetroDECK Configurator Utility - RetroDECK: Change Logging Level" --cancel-label="Back" \
|
||||||
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --width=1200 --height=720 \
|
||||||
|
--column="Choice" --column="Action" \
|
||||||
|
"Informational" "The default, only logs important information." \
|
||||||
|
"Warnings" "Additionally log warnings." \
|
||||||
|
"Errors" "Additionally log warnings and errors." \
|
||||||
|
"Debug" "Log everything, may generate a lot of logs!." \)
|
||||||
|
|
||||||
|
case $choice in
|
||||||
|
|
||||||
|
"Informational" )
|
||||||
|
log i "Configurator: Changing logging level to \"$choice\""
|
||||||
|
set_setting_value "$rd_conf" "logging_level" "info" "retrodeck" "options"
|
||||||
|
;;
|
||||||
|
|
||||||
|
"Warnings" )
|
||||||
|
log i "Configurator: Changing logging level to \"$choice\""
|
||||||
|
set_setting_value "$rd_conf" "logging_level" "warn" "retrodeck" "options"
|
||||||
|
;;
|
||||||
|
|
||||||
|
"Errors" )
|
||||||
|
log i "Configurator: Changing logging level to \"$choice\""
|
||||||
|
set_setting_value "$rd_conf" "logging_level" "error" "retrodeck" "options"
|
||||||
|
;;
|
||||||
|
|
||||||
|
"Debug" )
|
||||||
|
log i "Configurator: Changing logging level to \"$choice\""
|
||||||
|
set_setting_value "$rd_conf" "logging_level" "debug" "retrodeck" "options"
|
||||||
|
;;
|
||||||
|
|
||||||
|
"" ) # No selection made or Back button clicked
|
||||||
|
log i "Configurator: going back"
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
configurator_tools_dialog
|
||||||
|
;;
|
||||||
|
|
||||||
"Ponzu: Remove Yuzu" )
|
"Ponzu: Remove Yuzu" )
|
||||||
ponzu_remove "yuzu"
|
ponzu_remove "yuzu"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue