mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-14 05:12:09 +08:00
23 lines
588 B
C#
23 lines
588 B
C#
using Sheas_Core;
|
|
using System;
|
|
using System.Windows;
|
|
|
|
namespace Sheas_Cealer.Proces;
|
|
|
|
internal class BrowserProc : Proc
|
|
{
|
|
private readonly bool ShutDownAppOnProcessExit;
|
|
|
|
internal BrowserProc(string browserPath, bool shutDownAppOnProcessExit) : base(browserPath)
|
|
{
|
|
ShutDownAppOnProcessExit = shutDownAppOnProcessExit;
|
|
|
|
Process_Exited(null, EventArgs.Empty);
|
|
}
|
|
|
|
protected sealed override void Process_Exited(object? sender, EventArgs e)
|
|
{
|
|
if (ShutDownAppOnProcessExit)
|
|
Application.Current.Dispatcher.InvokeShutdown();
|
|
}
|
|
} |