mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-03 16:15:28 +01:00
Merge pull request #52146 from NahomAgidew/fix/spin-sync-icon-on-push
Fix to #43625: spin sync icon on push
This commit is contained in:
@@ -71,10 +71,11 @@ class SyncStatusBar {
|
||||
}
|
||||
|
||||
private onOperationsChange(): void {
|
||||
this.state = {
|
||||
...this.state,
|
||||
isSyncRunning: this.repository.operations.isRunning(Operation.Sync)
|
||||
};
|
||||
const isSyncRunning = this.repository.operations.isRunning(Operation.Sync) ||
|
||||
this.repository.operations.isRunning(Operation.Push) ||
|
||||
this.repository.operations.isRunning(Operation.Pull);
|
||||
|
||||
this.state = { ...this.state, isSyncRunning };
|
||||
}
|
||||
|
||||
private onModelChange(): void {
|
||||
@@ -173,4 +174,4 @@ export class StatusBarCommands {
|
||||
this.checkoutStatusBar.dispose();
|
||||
this.disposables = dispose(this.disposables);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user