This commit is contained in:
TinyHerm committed 2026-11-24 23:40:08 +03:00
commit 1c7a8cf25f
579 files changed
+83196

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
using System.Runtime.CompilerServices;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
namespace VibranceHud;
internal static class StoreActivation
{
internal static bool LaunchedAtSignIn()
{
try
{
return AskWindows();
}
catch
{
return false;
}
}
[MethodImpl(MethodImplOptions.NoInlining)]
private static bool AskWindows()
{
IActivatedEventArgs activatedEventArgs = AppInstance.GetActivatedEventArgs();
if (activatedEventArgs != null)
{
return activatedEventArgs.Kind == ActivationKind.StartupTask;
}
return false;
}
}