mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 19:57:27 +08:00
19 lines
460 B
C#
19 lines
460 B
C#
using System.Windows;
|
|
|
|
#nullable enable
|
|
namespace BililiveRecorder.WPF
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for App.xaml
|
|
/// </summary>
|
|
public partial class App : Application
|
|
{
|
|
private void Application_SessionEnding(object sender, SessionEndingCancelEventArgs e)
|
|
{
|
|
if (e != null)
|
|
e.Cancel = true;
|
|
(Current.MainWindow as NewMainWindow)?.CloseWithoutConfirmAction();
|
|
}
|
|
}
|
|
}
|