mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:09:52 +02:00
Update implementation of ConnectionMonitor timeout
This commit is contained in:
parent
26b9da7eef
commit
d775a92dab
1 changed files with 2 additions and 4 deletions
|
@ -35,10 +35,8 @@ void ConnectionMonitor::init() {
|
||||||
_timer.setInterval(DISPLAY_AFTER_DISCONNECTED_FOR_X_MS);
|
_timer.setInterval(DISPLAY_AFTER_DISCONNECTED_FOR_X_MS);
|
||||||
_timer.start();
|
_timer.start();
|
||||||
|
|
||||||
connect(&_timer, &QTimer::timeout, this, []() {
|
auto dialogsManager = DependencyManager::get<DialogsManager>();
|
||||||
qDebug() << "CM: Showing address bar!";
|
connect(&_timer, &QTimer::timeout, dialogsManager.data(), &DialogsManager::showAddressBar);
|
||||||
DependencyManager::get<DialogsManager>()->showAddressBar();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConnectionMonitor::disconnectedFromDomain() {
|
void ConnectionMonitor::disconnectedFromDomain() {
|
||||||
|
|
Loading…
Reference in a new issue