mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-13 21:02:08 +08:00
17 lines
477 B
C#
17 lines
477 B
C#
using Sheas_Core;
|
|
using System;
|
|
|
|
namespace Sheas_Cealer_Nix.Proces;
|
|
|
|
internal class BrowserProc : Proc
|
|
{
|
|
private readonly bool ShutDownAppOnProcessExit;
|
|
|
|
internal BrowserProc(string browserPath, bool shutDownAppOnProcessExit) : base(browserPath) => ShutDownAppOnProcessExit = shutDownAppOnProcessExit;
|
|
|
|
protected sealed override void Process_Exited(object? sender, EventArgs e)
|
|
{
|
|
if (ShutDownAppOnProcessExit)
|
|
Environment.Exit(0);
|
|
}
|
|
} |