Skip to content

Commit 8e5d628

Browse files
committed
prep reID
1 parent 8f8c2c8 commit 8e5d628

File tree

8 files changed

+128
-142
lines changed

8 files changed

+128
-142
lines changed

addon/locale/en-US/addon.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ startup-finish = MarkDB-Connect ready
44
55
menuitem-prefs = MarkDB-Connect Preferences…
66
menuitem-sync = MarkDB-Connect Sync Tags
7-
menuitem-debug = MarkDB-Connect Troubleshooting
7+
menuitem-troubleshoot = MarkDB-Connect Troubleshooting
88
contextmenuitem-reveal = Show Markdown File
99
contextmenuitem-open-default = Open Markdown Note
1010
contextmenuitem-open-obsidian = Open Note in Obsidian

scripts/update-template.json

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
"addons": {
33
"__addonID__": {
44
"updates": [
5-
{
6-
"version": "0.0.27",
7-
"update_link": "https://github.com/daeh/zotero-markdb-connect/releases/download/v0.0.27/markdb-connect-0.0.27.xpi",
8-
"applications": {
9-
"gecko": {
10-
"strict_min_version": "60.9",
11-
"strict_max_version": "60.9"
12-
}
13-
}
14-
},
155
{
166
"version": "__buildVersion__",
177
"update_link": "__updateLink__",
@@ -22,19 +12,6 @@
2212
}
2313
}
2414
]
25-
},
26-
"dev@daeh.info": {
27-
"updates": [
28-
{
29-
"version": "0.1.0-rc.4",
30-
"update_link": "https://github.com/daeh/zotero-markdb-connect/releases/download/v0.1.0-rc.4/markdb-connect-0.1.0-rc.4.xpi",
31-
"applications": {
32-
"zotero": {
33-
"strict_min_version": "6.999"
34-
}
35-
}
36-
}
37-
]
3815
}
3916
}
4017
}

src/hooks.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function onMainWindowLoad(win: Window): Promise<void> {
5555
})
5656

5757
// TODO Only run Sync if config check passes.
58-
await ScanMarkdownFiles.runSync(false, false)
58+
await ScanMarkdownFiles.syncWrapper(false, false)
5959

6060
popupWin.changeLine({
6161
progress: 80,
@@ -99,7 +99,7 @@ function syncMarkDB() {
9999
const displayReport = false
100100
const saveLogs = false
101101

102-
ScanMarkdownFiles.runSync(displayReport, saveLogs)
102+
ScanMarkdownFiles.syncWrapper(displayReport, saveLogs)
103103
.then(() => {
104104
Logger.log('syncMarkDB', 'finished', true, 'info')
105105
})
@@ -113,7 +113,7 @@ function syncMarkDBReport() {
113113
const displayReport = true
114114
const saveLogs = false
115115

116-
ScanMarkdownFiles.runSync(displayReport, saveLogs)
116+
ScanMarkdownFiles.syncWrapper(displayReport, saveLogs)
117117
.then(() => {
118118
Logger.log('syncMarkDBReport', 'finished', true, 'info')
119119
})
@@ -127,12 +127,17 @@ function syncMarkDBSaveDebug() {
127127
const displayReport = false
128128
const saveLogs = true
129129

130-
ScanMarkdownFiles.runSync(displayReport, saveLogs)
130+
ScanMarkdownFiles.syncWrapper(displayReport, saveLogs)
131131
.then(() => {
132132
Logger.log('syncMarkDBSaveDebug', 'finished', true, 'info')
133133
})
134134
.catch((err) => {
135135
Logger.log('syncMarkDBSaveDebug', `ERROR :: ${err}`, true, 'error')
136+
// const loggedMessages = Logger.getMessages()
137+
// await
138+
// ScanMarkdownFiles.displayReportDialog([], loggedMessages)
139+
// await
140+
// systemInterface.dumpDebuggingLog()
136141
})
137142
}
138143

0 commit comments

Comments
 (0)