Main menu improvments

This commit is contained in:
localhost_frssoft 2022-05-06 00:41:58 +03:00
parent e4daec319b
commit 2536388308

View file

@ -849,6 +849,7 @@ menu_timeline='Timelines'
notif='Notifications' notif='Notifications'
followingsmenu='Followings' followingsmenu='Followings'
followrequests='Follow requests' followrequests='Follow requests'
my_account='Account'
authmake='Auth' authmake='Auth'
backup_restore='Backup/Restore' backup_restore='Backup/Restore'
switchinstance='Switch instance' switchinstance='Switch instance'
@ -856,7 +857,7 @@ Exit='Exit'
while true; do while true; do
if [ -n "$auth" ]; then if [ -n "$auth" ]; then
main_menu=$(echo "$menu_write_status\n$menu_timeline\n$notif\n$followingsmenu\n$followrequests\n$backup_restore\n$switchinstance\n$Exit" | fzy) main_menu=$(echo "$menu_write_status\n$menu_timeline\n$notif\n$my_account\n$switchinstance\n$Exit" | fzy)
else else
main_menu=$(echo "$authmake\n$menu_timeline\n$switchinstance\n$Exit" | fzy) main_menu=$(echo "$authmake\n$menu_timeline\n$switchinstance\n$Exit" | fzy)
fi fi
@ -867,9 +868,15 @@ case $main_menu in
timeline_menu timeline_menu
;; ;;
"$notif") notif_menu ;; "$notif") notif_menu ;;
"$my_account")
my_account_menu=$(echo "$followingsmenu\n$followrequests\n$backup_restore" | fzy)
case $my_account_menu in
"$followingsmenu") followings_menu ;; "$followingsmenu") followings_menu ;;
"$followrequests") menu_follow_requests ;; "$followrequests") menu_follow_requests ;;
"$backup_restore") backup_restore_menu ;; "$backup_restore") backup_restore_menu ;;
esac
;;
"$switchinstance") "$switchinstance")
empty=0 empty=0
case $(echo 'Recently used\nChoice from list\nManual input' | fzy) in case $(echo 'Recently used\nChoice from list\nManual input' | fzy) in