add App.Ready event

This commit is contained in:
Gregor Biswanger
2020-05-24 18:50:35 +02:00
parent 1541553ed1
commit c552a04347
2 changed files with 24 additions and 2 deletions

View File

@@ -353,10 +353,28 @@ namespace ElectronNET.API
private event Action<bool> _accessibilitySupportChanged;
/// <summary>
/// Emitted when the application has finished basic startup.
/// </summary>
public event Action Ready;
/// <summary>
/// Application host fully started.
/// </summary>
public bool IsReady { get; internal set; }
public bool IsReady
{
get { return _isReady; }
internal set
{
_isReady = value;
if(value)
{
Ready?.Invoke();
}
}
}
private bool _isReady = false;
/// <summary>
/// A property that indicates the current application's name, which is the