forked from github/szkolny
[Config] Fix only notes card visible on new profiles.
This commit is contained in:
parent
52968cafad
commit
cb953ea8a8
@ -37,9 +37,11 @@ class ProfileConfigMigration(config: ProfileConfig) {
|
||||
}
|
||||
|
||||
if (dataVersion < 3) {
|
||||
if (ui.homeCards.isNotEmpty()) {
|
||||
ui.homeCards = ui.homeCards.toMutableList().also {
|
||||
it.add(HomeCardModel(config.profileId, HomeCard.CARD_NOTES))
|
||||
}
|
||||
}
|
||||
|
||||
dataVersion = 3
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user