Short delay before populating PAL when changing domains

This commit is contained in:
Zach Fox 2017-01-04 13:50:37 -08:00
parent c695878025
commit 03fbfc85f9

View file

@ -335,7 +335,7 @@ Users.usernameFromIDReply.connect(usernameFromIDReply);
function clearIgnoredInQMLAndRefreshPAL() {
pal.sendToQml({ method: 'clearIgnored' });
removeOverlays();
populateUserList();
Script.setTimeout(populateUserList, 200); // Short delay before populating the PAL to allow the HashMap to populate
}
Window.domainChanged.connect(clearIgnoredInQMLAndRefreshPAL);
Window.domainConnectionRefused.connect(clearIgnoredInQMLAndRefreshPAL);