Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -783,6 +783,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 782 unmodified lines | ||
| 783 | 783 | connect(&domainHandler, SIGNAL(connectedToDomain(const QString&)), SLOT(updateWindowTitle())); |
| 784 | 784 | connect(&domainHandler, SIGNAL(disconnectedFromDomain()), SLOT(updateWindowTitle())); |
| 785 | 785 | connect(&domainHandler, SIGNAL(disconnectedFromDomain()), SLOT(clearDomainOctreeDetails())); |
| 786 | + connect(&domainHandler, &DomainHandler::disconnectedFromDomain, this, [this]() { | |
| 787 | + getOverlays().deleteOverlay(getTabletScreenID()); | |
| 788 | + getOverlays().deleteOverlay(getTabletHomeButtonID()); | |
| 789 | + getOverlays().deleteOverlay(getTabletFrameID()); | |
| 790 | + }); | |
| 786 | 791 | connect(&domainHandler, &DomainHandler::domainConnectionRefused, this, &Application::domainConnectionRefused); |
| 787 | 792 | |
| 788 | 793 | // We could clear ATP assets only when changing domains, but it's possible that the domain you are connected |