fix: Verbesserung der Abbruchbehandlung während des Kopiervorgangs und Versionsnummer auf 1.0.16 erhöht
This commit is contained in:
11
app.py
11
app.py
@@ -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:
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.0.15
|
||||
1.0.16
|
||||
Reference in New Issue
Block a user