History

delete tablet overlays when switching domains

Seth Alves committed 9 years ago

Commit 36bcaa81 parent 1287beb1 file · +5 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+5−0
@@ -783,6 +783,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 782 unmodified lines
783783 connect(&domainHandler, SIGNAL(connectedToDomain(const QString&)), SLOT(updateWindowTitle()));
784784 connect(&domainHandler, SIGNAL(disconnectedFromDomain()), SLOT(updateWindowTitle()));
785785 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+ });
786791 connect(&domainHandler, &DomainHandler::domainConnectionRefused, this, &Application::domainConnectionRefused);
787792
788793 // We could clear ATP assets only when changing domains, but it's possible that the domain you are connected

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t