launcher upgrades

+improved UI for restore backup
This commit is contained in:
deffcolony
2024-08-01 15:28:31 +02:00
parent fc0de8dab6
commit 88b271cd91
2 changed files with 13 additions and 11 deletions

View File

@@ -3,24 +3,26 @@
:restore_backup
title STL [RESTORE BACKUP]
cls
echo %blue_fg_strong%/ Home / Toolbox / Backup / Restore Backup%reset%
echo ---------------------------------------------------------------
echo Available backups:
echo ================================
echo %blue_fg_strong%^| ^> / Home / Toolbox / Backup / Restore Backup ^|%reset%
echo %blue_fg_strong% ==============================================================%reset%
echo.
echo +==== Available backups ==================+
setlocal enabledelayedexpansion
set "backup_count=0"
for %%F in ("%st_backup_path%\st_backup_*.7z") do (
set /a "backup_count+=1"
set "backup_files[!backup_count!]=%%~nF"
echo !backup_count!. %cyan_fg_strong%%%~nF%reset%
echo !backup_count!. %cyan_fg_strong%%%~nF%reset%
)
echo ================================
echo 0. Cancel
echo +=========================================+
echo %cyan_fg_strong% ______________________________________________________________%reset%
echo %cyan_fg_strong%^| Menu Options: ^|%reset%
echo 0. Cancel
echo.
set /p "restore_choice=Select backup to restore: "
echo %cyan_fg_strong% ______________________________________________________________%reset%
echo %cyan_fg_strong%^| ^|%reset%
set /p "restore_choice=%BS% Select backup to restore: "
if "%restore_choice%"=="0" goto :backup