mirror of
https://github.com/microsoft/terminal.git
synced 2026-07-09 02:26:45 +00:00
[ainulindale] Clean tear down the App when the process exits
This commit is contained in:
@@ -30,6 +30,12 @@ WindowEmperor::WindowEmperor() noexcept :
|
||||
});
|
||||
}
|
||||
|
||||
WindowEmperor::~WindowEmperor()
|
||||
{
|
||||
_app.Close();
|
||||
_app = nullptr;
|
||||
}
|
||||
|
||||
void _buildArgsFromCommandline(std::vector<winrt::hstring>& args)
|
||||
{
|
||||
if (auto commandline{ GetCommandLineW() })
|
||||
|
||||
@@ -19,6 +19,7 @@ class WindowEmperor
|
||||
{
|
||||
public:
|
||||
WindowEmperor() noexcept;
|
||||
~WindowEmperor();
|
||||
bool ShouldExit();
|
||||
void WaitForWindows();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user