fix: disable resume when stage is DONE, add mark_completed for skipped transfer
This commit is contained in:
@@ -109,8 +109,9 @@ def main():
|
||||
banner()
|
||||
while True:
|
||||
st = state.load_state()
|
||||
# Это resume — если есть mode, stage != INIT, или было прерывание
|
||||
has_resume = bool(st.get("mode") and st.get("stage") != "INIT")
|
||||
# Resume показываем только если есть незавершённая работа (stage != INIT, != DONE)
|
||||
stage = st.get("stage", "INIT")
|
||||
has_resume = bool(st.get("mode") and stage not in ("INIT", "DONE"))
|
||||
menu(has_resume=has_resume)
|
||||
try:
|
||||
choice = prompt("Ваш выбор", default="0").strip()
|
||||
|
||||
Reference in New Issue
Block a user