We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53e596b commit eb714f6Copy full SHA for eb714f6
src/Files.App/Helpers/Application/AppLifecycleHelper.cs
@@ -61,7 +61,8 @@ static AppLifecycleHelper()
61
{
62
IsAppUpdated = version.ToString() != AppVersion.ToString();
63
}
64
- TotalLaunchCount = launchCount is long l ? l + 1 : 1;
+
65
+ TotalLaunchCount = long.TryParse(launchCount?.ToString(), out var v) ? v + 1 : 1;
66
infoKey.SetValue("LastLaunchVersion", AppVersion.ToString());
67
infoKey.SetValue("TotalLaunchCount", TotalLaunchCount);
68
0 commit comments