mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-08-12 19:19:52 +00:00
implement PreventDefault function for stop quiting application
This commit is contained in:
16
ElectronNET.API/QuitEventArgs.cs
Normal file
16
ElectronNET.API/QuitEventArgs.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user