Closed fotiDim closed 8 years ago
Thanks, nice work. I'd rather see a public method reset
which includes all of the reset values in that block, then calls your resetCounters
method as part of it. This would provide the implementor with 2 new options: one to completely reset Armchair in runtime, and one to reset only the counters, as you have done.
Done. I took the liberty to rename resetCounters
to resetUsageCounters
and instead of reset
I used resetAllCounters
to avoid ambiguity. Using reset
might imply that we are reseting Defaults too.
Looks good, thanks!
Based on #49 I created this PR. This doesn't reset everything in the block you suggested as I only need to reset:
The app version is not changing so I leave userdefault values intact.