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'
followingsmenu='Followings'
followrequests='Follow requests'
my_account='Account'
authmake='Auth'
backup_restore='Backup/Restore'
switchinstance='Switch instance'
@ -856,7 +857,7 @@ Exit='Exit'
while true; do
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
main_menu=$(echo "$authmake\n$menu_timeline\n$switchinstance\n$Exit" | fzy)
fi
@ -867,9 +868,15 @@ case $main_menu in
timeline_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 ;;
"$followrequests") menu_follow_requests ;;
"$backup_restore") backup_restore_menu ;;
esac
;;
"$switchinstance")
empty=0
case $(echo 'Recently used\nChoice from list\nManual input' | fzy) in