feat: make fullscreen option sticky

This commit is contained in:
aclist committed 2024-11-01 00:11:09 +09:00
1 parent 9d1ff35559
commit ce93fdf869
4 files changed
+37 -4

No files matched your search

+12
View File
@@ -410,6 +410,7 @@ query_config(){
"name"
"fav_label"
"preferred_client"
"fullscreen"
)
if [[ -n $key ]]; then
if [[ -n ${!key} ]]; then
@@ -714,6 +715,9 @@ debug="$debug"
#Toggle stable/testing branch
branch="$branch"
#Start in fullscreen
fullscreen="$fullscreen"
#Steam API key
steam_api="$steam_api"
@@ -807,6 +811,14 @@ toggle(){
else
preferred_client="steam"
fi
;;
Toggle[[:space:]]DZGUI[[:space:]]fullscreen[[:space:]]boot)
if [[ $fullscreen == "true" ]]; then
fullscreen="false"
else
fullscreen="true"
fi
;;
esac
update_config
return 90