1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-09-07 06:02:27 +02:00

feat: make fullscreen option sticky

This commit is contained in:
aclist 2024-11-01 00:11:09 +09:00
parent 9d1ff35559
commit ce93fdf869
4 changed files with 37 additions and 4 deletions

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