feat: Fehlermeldung beim Abbruch aktualisiert und Versionsnummer auf 1.0.21 erhöht
This commit is contained in:
7
app.py
7
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
|
||||
<button id="btn-cancel" class="btn danger" onclick="cancelCopy()" style="display:none">■ Abbrechen</button>
|
||||
<button class="btn ghost" onclick="refreshDevices()">-> Geräte neu laden</button>
|
||||
</div>
|
||||
<div id="copy-hint" class="flash" style="display:none"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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'); }
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.0.20
|
||||
1.0.21
|
||||
Reference in New Issue
Block a user