Commit graph

10 commits

Author SHA1 Message Date
Leo Yao
640d920f8f
Bugfix: pass DataManager to BarManager constructor
Before this patch, the BarManager constructor created a new DataManager instance,
leading to this.dataManager != this.barManager.dataManager. This led to effects such as
daily counts not updating in some circumstances, while total counts did.
2022-05-25 10:55:11 -04:00
Leo Yao
ba22ec7db9 Fix stats file creation when stats collection off
I noticed that despite having collectStats set to false, upon vault
or plugin load, the .vault-stats file would keep coming back. This is
due to:

In the plugin onload(), a BarManager is created
In the BarManager constructor, a DataManager is created
In the DataManager constructor, the .vault-stats file is created and
then written to, regardless of the user's collectStats setting.

We add an additional check in the DataManager constructor for the
collectStats setting, propagating settings through constructors
as necessary.
2021-12-25 22:26:59 -05:00
Luke Leppan
89c74b9054 🐛 Fix #15 2021-07-12 14:47:37 +02:00
Luke Leppan
90a277bc53 improves High CPU usage #14 2021-07-11 23:36:48 +02:00
Luke Leppan
03989d6b7a 🐛 Fix Broken Stats 2021-07-11 13:18:37 +02:00
Luke Leppan
5aa51986fe Add Daily Counts #11 2021-07-08 22:20:38 +02:00
Luke Leppan
7f817bd5bd add #13 2021-07-07 19:29:16 +02:00
Luke Leppan
691ffe88ea total counts working 2021-07-07 19:00:11 +02:00
Luke Leppan
7c420b0b0b getting closer 2021-07-07 14:34:39 +02:00
Luke Leppan
49ad4d12f5 turning out to be a much larger update 😂 2021-07-03 21:22:50 +02:00