[ainulindale] Clean tear down the App when the process exits

This commit is contained in:
Mike Griese
2023-02-03 09:15:53 -06:00
parent 713ea71725
commit 57d1dd4358
2 changed files with 7 additions and 0 deletions

View File

@@ -30,6 +30,12 @@ WindowEmperor::WindowEmperor() noexcept :
});
}
WindowEmperor::~WindowEmperor()
{
_app.Close();
_app = nullptr;
}
void _buildArgsFromCommandline(std::vector<winrt::hstring>& args)
{
if (auto commandline{ GetCommandLineW() })

View File

@@ -19,6 +19,7 @@ class WindowEmperor
{
public:
WindowEmperor() noexcept;
~WindowEmperor();
bool ShouldExit();
void WaitForWindows();