Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting: Customizable refresh interval for draw() #29

Closed
Tracked by #16
SkepticMystic opened this issue Jun 27, 2021 · 1 comment
Closed
Tracked by #16

Setting: Customizable refresh interval for draw() #29

SkepticMystic opened this issue Jun 27, 2021 · 1 comment

Comments

@SkepticMystic
Copy link
Owner

The breadcrumbs matrix doesn't auto refresh unless switching notes.
I can add an option for a customisable resfresh interval.

I just need to be careful about deregistering it.

setting.onChange(value => {
    plugin.interval.deregister;
    if(value && Number.isInt(value)) {
        plugin.interval = app.registerInterval(() => await matrixView.draw(), value)
    } else {
       plugin.interval.deregister()
   }
})
@SkepticMystic SkepticMystic mentioned this issue Jun 27, 2021
4 tasks
@SkepticMystic
Copy link
Owner Author

Should be working in 0.4.9

Issue Kanban automation moved this from FR to Done Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

1 participant