Skip to content

Commit

Permalink
feat: log app version on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Merrit committed Oct 27, 2023
1 parent a670ac5 commit f1eaaf8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ Future<void> main(List<String> args) async {
return true;
};

// Provides information on this app from the pubspec.yaml.
final packageInfo = await PackageInfo.fromPlatform();
log.i('Starting Nyrna v${packageInfo.version}');

final processRepository = ProcessRepository.init();

final activeWindow = ActiveWindow(
Expand Down Expand Up @@ -88,9 +92,6 @@ Future<void> main(List<String> args) async {

final themeCubit = await ThemeCubit.init(storage);

// Provides information on this app from the pubspec.yaml.
final packageInfo = await PackageInfo.fromPlatform();

final systemTray = SystemTrayManager();
await systemTray.initialize();

Expand Down

0 comments on commit f1eaaf8

Please sign in to comment.