dromse / obsidian-gamified-tasks

Gamify your task management with rewards system, craft your tasks by tags.
MIT License
29 stars 1 forks source link

[Bug]: Buggy fast clicking counter on slow device #10

Closed dromse closed 2 months ago

dromse commented 3 months ago

What happened?

When I fast clicking on counter on slow device, in history saves not correct amount of clicks, but it's only if click very fast.

Steps to reproduce

Possible solution: Implement Transaction Module

Prevent changing history file immediately after counter click, instead add transaction to update history and then resolve it. If transactions to increase counter is more then ultimate value, remove rest operations on changing history.

Plugin Version

1.0.6

Obsidian Version

1.5.12

What platform are you seeing the problem on? (Can be multiple)

Linux

Relevant log output (Ctrl + Shift + I for PC or chrome://inspect for mobile)

No response

Additional questions