yshavit / whatdid

What did I do all day?
MIT License
8 stars 0 forks source link

create a separate UserDefaults in UI Test mode #341

Closed yshavit closed 1 year ago

yshavit commented 1 year ago

Rather than trying to clear things out in UI Test mode, just create a different UserDefaults instance for it, and disable persistence on it. That's simpler, and you don't need to worry about not restoring the prefs if you kill the process instead of requesting an orderly shutdown.

fixes #340