From 2bbf3ac59d922c7e85a799b91dbbf6ffa055e971 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Fri, 3 Apr 2026 22:32:59 -0700 Subject: [PATCH] Remove delete confirmation for untracked files in Source Control (#283) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The window.confirm dialog for discarding untracked files is unnecessary friction — just discard immediately like tracked file changes. --- src/renderer/src/components/right-sidebar/SourceControl.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/renderer/src/components/right-sidebar/SourceControl.tsx b/src/renderer/src/components/right-sidebar/SourceControl.tsx index 3e3a1c47f50..4fafa4ff4c4 100644 --- a/src/renderer/src/components/right-sidebar/SourceControl.tsx +++ b/src/renderer/src/components/right-sidebar/SourceControl.tsx @@ -970,12 +970,6 @@ function UncommittedEntryRow({ title={entry.area === 'untracked' ? 'Revert untracked file' : 'Discard changes'} onClick={(event) => { event.stopPropagation() - if ( - entry.area === 'untracked' && - !window.confirm(`Delete untracked file "${entry.path}"? This cannot be undone.`) - ) { - return - } void onDiscard() }} />