|
@@ -87,18 +87,26 @@ namespace Avalonia.Native
|
|
|
}
|
|
|
|
|
|
void IAvnApplicationEvents.OnHide()
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ void IAvnApplicationEvents.OnUnhide()
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ void IAvnApplicationEvents.OnActivate()
|
|
|
{
|
|
|
if (AvaloniaLocator.Current.GetService<IActivatableLifetime>() is ActivatableLifetimeBase lifetime)
|
|
|
{
|
|
|
- lifetime.OnDeactivated(ActivationKind.Background);
|
|
|
+ lifetime.OnActivated(ActivationKind.Background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- void IAvnApplicationEvents.OnUnhide()
|
|
|
+ void IAvnApplicationEvents.OnDeactivate()
|
|
|
{
|
|
|
if (AvaloniaLocator.Current.GetService<IActivatableLifetime>() is ActivatableLifetimeBase lifetime)
|
|
|
{
|
|
|
- lifetime.OnActivated(ActivationKind.Background);
|
|
|
+ lifetime.OnDeactivated(ActivationKind.Background);
|
|
|
}
|
|
|
}
|
|
|
|