implement PreventDefault function for stop quiting application

This commit is contained in:
Gregor Biswanger
2017-11-10 03:11:13 +01:00
parent 531446f38d
commit ca382bf605
5 changed files with 71 additions and 25 deletions

View File

@@ -0,0 +1,16 @@
namespace ElectronNET.API
{
/// <summary>
///
/// </summary>
public sealed class QuitEventArgs
{
/// <summary>
/// Will prevent the default behaviour, which is terminating the application.
/// </summary>
public void PreventDefault()
{
Electron.App.PreventQuit();
}
}
}