Skip to content

Commit

Permalink
feat(changelog): do not show changelog on first boot of new installs
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
JagandeepBrar committed Aug 21, 2022
1 parent 64d66c9 commit 52fd7fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/main.dart
Expand Up @@ -132,13 +132,14 @@ class _State extends State<LunaOS> {

Future<void> _healthCheck() async {
final isLatest = LunaBuild().isLatestBuildVersion();
final firstBoot = BIOSDatabase.FIRST_BOOT.read();

if (BIOSDatabase.DATABASE_CORRUPTION.read()) {
DatabaseCorruptionSheet().show();
BIOSDatabase.DATABASE_CORRUPTION.update(false);
}

if (!isLatest.item1) {
if (!firstBoot && !isLatest.item1) {
ChangelogSheet().show();
}
}
Expand Down

0 comments on commit 52fd7fc

Please sign in to comment.