Implement separate instances for web apps.

This commit is contained in:
John Preston
2024-07-19 14:06:30 +02:00
parent 9461095c88
commit fd982b90db
14 changed files with 1202 additions and 1084 deletions
+5 -1
View File
@@ -231,7 +231,11 @@ Application::~Application() {
// For example Domain::removeRedundantAccounts() is called from
// Domain::finish() and there is a violation on Ensures(started()).
Payments::CheckoutProcess::ClearAll();
InlineBots::AttachWebView::ClearAll();
for (const auto &[index, account] : _domain->accounts()) {
if (account->sessionExists()) {
account->session().attachWebView().closeAll();
}
}
_iv->closeAll();
_domain->finish();