Add "Jetzt entpacken" context menu, fix start freeze on large queues
Build and Release / build (push) Has been cancelled
Build and Release / build (push) Has been cancelled
- New "Jetzt entpacken" right-click option: triggers extraction for completed packages regardless of paused/stopped state - Fix 5-10s freeze when pressing Start after Pause: recoverRetryableItems was calling fs.stat on every item (474+); now only checks failed/completed - Full IPC pipeline: extractNow in manager, controller, preload, renderer Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
e013c63c59
commit
0b73ea1386
@@ -2569,9 +2569,15 @@ export function App(): ReactElement {
|
||||
const pkg = snapshot.session.packages[contextMenu.packageId];
|
||||
const items = pkg?.itemIds.map((id) => snapshot.session.items[id]).filter(Boolean) || [];
|
||||
const hasExtractError = items.some((item) => item && /^Entpack-Fehler/i.test(item.fullStatus));
|
||||
return hasExtractError ? (
|
||||
<button className="ctx-menu-item" onClick={() => { void window.rd.retryExtraction(contextMenu.packageId); setContextMenu(null); }}>Extraktion wiederholen</button>
|
||||
) : null;
|
||||
const allCompleted = items.length > 0 && items.every((item) => item && item.status === "completed");
|
||||
return (<>
|
||||
{allCompleted && (
|
||||
<button className="ctx-menu-item" onClick={() => { void window.rd.extractNow(contextMenu.packageId); setContextMenu(null); }}>Jetzt entpacken</button>
|
||||
)}
|
||||
{hasExtractError && (
|
||||
<button className="ctx-menu-item" onClick={() => { void window.rd.retryExtraction(contextMenu.packageId); setContextMenu(null); }}>Extraktion wiederholen</button>
|
||||
)}
|
||||
</>);
|
||||
})()}
|
||||
{hasPackages && (
|
||||
<button className="ctx-menu-item ctx-danger" onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user