Skip to content

Commit

Permalink
feat: don't display popup if no notes in file
Browse files Browse the repository at this point in the history
Fixes [Bug] Displays message even when no notes were synced #1
  • Loading branch information
JeppeKlitgaard committed Oct 30, 2021
1 parent 0baedd8 commit dc88556
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export default class AnkiBridgePlugin extends Plugin {
throw result.fatalErrorString
}
} else if (result.nonFatalErrors === 0) {
if (displayOnSuccess && result.notesProcessed) {
new Notice(
'✔ Synced with Anki\n' +
'\n' +
Expand Down

0 comments on commit dc88556

Please sign in to comment.