| ... | @@ -194,11 +194,6 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp | ... | @@ -194,11 +194,6 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp |
| 194 | ? (quickAction.hint ?? "This action is currently unavailable.") | 194 | ? (quickAction.hint ?? "This action is currently unavailable.") |
| 195 | : null; | 195 | : null; |
| 196 | | 196 | |
| 197 | const refreshGitStatus = useCallback(async () => { | | |
| 198 | if (!api || !gitCwd) return; | | |
| 199 | await invalidateGitQueries(queryClient); | | |
| 200 | }, [api, gitCwd, queryClient]); | | |
| 201 | | | |
| 202 | const maybeConfirmPushToDefaultBranch = useCallback( | 197 | const maybeConfirmPushToDefaultBranch = useCallback( |
| 203 | async (action: GitStackedAction): Promise<boolean> => { | 198 | async (action: GitStackedAction): Promise<boolean> => { |
| 204 | if (!api) return false; | 199 | if (!api) return false; |
| ... | @@ -479,7 +474,11 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp | ... | @@ -479,7 +474,11 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp |
| 479 | </Button> | 474 | </Button> |
| 480 | )} | 475 | )} |
| 481 | <GroupSeparator /> | 476 | <GroupSeparator /> |
| 482 | <Menu> | 477 | <Menu |
| | 478 | onOpenChange={(open) => { |
| | 479 | if (open) void invalidateGitQueries(queryClient); |
| | 480 | }} |
| | 481 | > |
| 483 | <MenuTrigger | 482 | <MenuTrigger |
| 484 | render={<Button aria-label="Git action options" size="icon-xs" variant="outline" />} | 483 | render={<Button aria-label="Git action options" size="icon-xs" variant="outline" />} |
| 485 | disabled={isGitActionRunning} | 484 | disabled={isGitActionRunning} |