cgcel / obsidian-local-backup

Automatically creates a local backup of the vault.
MIT License
48 stars 3 forks source link

The UI thread is blocked when the backup occurs #4

Closed decaf-dev closed 11 months ago

decaf-dev commented 11 months ago

Problem

Whenever a backup occurs, the UI thread is blocked. This makes the application freeze until the backup is done.

Solution

Run the backup on another thread.

cgcel commented 11 months ago

Yes, this is a known issue, I'll try to fix it.

cgcel commented 11 months ago

I'm afraid I can't run the backup on another thread, obsidian throws exception when I called workder_thread:

Error: The V8 platform used by this instance of Node does not support creating Workers.

So this issue would be closed.