mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-03-02 20:11:08 -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
|
|
@ -131,6 +131,7 @@ export async function getWorkspaceMenuTemplate(
|
|||
enabled: isOnline,
|
||||
click: async () => {
|
||||
if (isSubWiki) {
|
||||
// TODO: use syncWikiIfNeeded
|
||||
const hasChanges = await service.git.commitAndSync(workspace, { remoteUrl: gitUrl, userInfo });
|
||||
if (hasChanges) {
|
||||
if (mainWikiID === null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue