fix: Verbesserung der Abbruchbehandlung während des Kopiervorgangs und Versionsnummer auf 1.0.16 erhöht

This commit is contained in:
2026-05-09 10:39:30 +02:00
parent 37616c4d2d
commit 8bc3937956
2 changed files with 13 additions and 10 deletions

11
app.py
View File

@@ -642,7 +642,8 @@ def do_copy(src_dev, dst_dev, cfg):
# ── Phase 1: Kopieren ──────────────────────────────────────────────
for i, f in enumerate(files):
with copy_lock:
if not copy_state['running']:
cancelled = not copy_state['running']
if cancelled:
add_log('Abgebrochen')
return
rel = f.relative_to(src_path)
@@ -708,12 +709,14 @@ def do_copy(src_dev, dst_dev, cfg):
for i, (src_f, dst_f) in enumerate(copied_pairs):
with copy_lock:
if not copy_state['running']:
add_log('Abgebrochen')
return
cancelled = not copy_state['running']
if not cancelled:
copy_state.update(done=i+1,
progress=int((i+1)/len(copied_pairs)*100),
current=src_f.name)
if cancelled:
add_log('Abgebrochen')
return
if _file_md5(src_f) == _file_md5(dst_f):
verified_pairs.append((src_f, dst_f))
else:

View File

@@ -1 +1 @@
1.0.15
1.0.16