soupslurpr / BeauTyXT

A beautiful, private, secure, and minimalistic Text, Markdown, and Typst editor.
https://beautyxt.app
ISC License
79 stars 6 forks source link

Simplify population of settings at startup #33

Closed soupslurpr closed 1 year ago

soupslurpr commented 1 year ago

Simplify population of setting values at startup by doing it in the SettingViewModel's init instead of a LaunchedEffect in Theme.kt.

Also we now pass dataStore to SettingsViewModel as a parameter when we create the SettingsViewModel in MainActivity, where we passed it to the rest of the app from there.