mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 08:42:13 +02:00
Don't warn user if permission removed while they're connected
This commit is contained in:
parent
e23251df4e
commit
0c1f775dc5
1 changed files with 7 additions and 1 deletions
|
@ -388,7 +388,13 @@ void DomainHandler::setCanConnectWithoutAvatarEntities(bool canConnect) {
|
|||
|
||||
bool DomainHandler::canConnectWithoutAvatarEntities() {
|
||||
if (!_canConnectWithoutAvatarEntities && !_haveAskedConnectWithoutAvatarEntities) {
|
||||
emit confirmConnectWithoutAvatarEntities();
|
||||
if (_isConnected) {
|
||||
// Already connected so don't ask. (Permission removed from user while in the domain.)
|
||||
setCanConnectWithoutAvatarEntities(true);
|
||||
} else {
|
||||
// Ask whether to connect to the domain.
|
||||
emit confirmConnectWithoutAvatarEntities();
|
||||
}
|
||||
}
|
||||
return _canConnectWithoutAvatarEntities;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue