mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-23 04:52:02 -08:00
refactor: update syncWikiIfNeeded to use syncOrForcePull
This commit is contained in:
parent
87957c3581
commit
8bf3fcdc1d
6 changed files with 68 additions and 37 deletions
|
|
@ -140,6 +140,7 @@ export class WorkspaceView implements IWorkspaceViewService {
|
|||
});
|
||||
} else {
|
||||
// sync in non-blocking way
|
||||
// TODO: use syncWikiIfNeeded
|
||||
void this.gitService.commitAndSync(workspace, { remoteUrl: githubRepoUrl, userInfo }).then(async (hasChanges) => {
|
||||
if (hasChanges) {
|
||||
await this.workspaceViewService.restartWorkspaceViewService(workspace.id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue