From f56103089db8101130d00fbb85cf4bd69bcc0109 Mon Sep 17 00:00:00 2001 From: Tobias Leuschner Date: Sat, 9 May 2026 11:28:43 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Fehlermeldung=20beim=20Abbruch=20aktual?= =?UTF-8?q?isiert=20und=20Versionsnummer=20auf=201.0.21=20erh=C3=B6ht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 7 +++++-- version.txt | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 39e0bf5..c5ba2a7 100644 --- a/app.py +++ b/app.py @@ -949,7 +949,7 @@ def r_start(): if copy_state['running']: return jsonify(error='Bereits aktiv'), 400 if _copy_thread is not None and _copy_thread.is_alive(): - return jsonify(error='Abbruch läuft noch, bitte einen Moment warten'), 400 + return jsonify(error='Abbruch wird noch abgeschlossen - bitte kurz warten und erneut versuchen.'), 400 cfg = load_cfg() devs = usb_devices() src = next((d for d in devs if d['usb_port'] == cfg.get('source_port')), None) @@ -1626,6 +1626,7 @@ body{background:var(--bg);color:var(--txt);font-family:-apple-system,BlinkMacSys + @@ -2034,7 +2035,9 @@ async function assignPort(role){ async function startCopy(){ _dismissed=false; if(_autoDismissTimer){ clearTimeout(_autoDismissTimer); _autoDismissTimer=null; } - const r=await api('/copy/start','POST'); if(r.error) alert('Fehler: '+r.error); + const r=await api('/copy/start','POST'); + if(r.error) flash('copy-hint','warn',r.error); + else $('copy-hint').style.display='none'; } async function cancelCopy(){ await api('/copy/cancel','POST'); } diff --git a/version.txt b/version.txt index 450f88e..ace256e 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.20 \ No newline at end of file +1.0.21 \ No newline at end of file