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:
parent
9d1ff35559
commit
ce93fdf869
4 changed files with 37 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue