fix: third round of workover

This commit is contained in:
2026-02-27 09:53:36 +01:00
parent 467ef10e77
commit dc62937fdc
6 changed files with 435 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ import { useAppStore } from '../../store';
import { openGitDiffCommitTab, openGitDiffFileTab } from '../../navigation/tabPolicy';
import { useI18n } from '../../i18n';
import type { GitInitProgress, GitHistoryEntry, GitRemoteStateDto } from '../../../main/shared/electronApi';
import { BDS_EVENT_SCRIPTS_CHANGED, dispatchWindowEvent } from '../../utils';
import './GitSidebar.css';
import '../Sidebar/Sidebar.css';
@@ -393,6 +394,9 @@ export const GitSidebar: React.FC = () => {
setErrorGuidance('guidance' in result ? result.guidance || [] : []);
return;
}
if (action === 'pull') {
dispatchWindowEvent(BDS_EVENT_SCRIPTS_CHANGED);
}
await loadRepoState();
} catch {
setError(tr('gitSidebar.error.actionFailed', { action }));