mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:49:05 +02:00
switchable placeholder for domain-connection failure, currently a modal
This commit is contained in:
parent
bf4489f3cf
commit
7a3c14683e
3 changed files with 6 additions and 1 deletions
|
@ -34,7 +34,7 @@ void ConnectionMonitor::init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
auto dialogsManager = DependencyManager::get<DialogsManager>();
|
auto dialogsManager = DependencyManager::get<DialogsManager>();
|
||||||
connect(&_timer, &QTimer::timeout, dialogsManager.data(), &DialogsManager::showAddressBar);
|
connect(&_timer, &QTimer::timeout, dialogsManager.data(), &DialogsManager::indicateDomainConnectionFailure);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConnectionMonitor::disconnectedFromDomain() {
|
void ConnectionMonitor::disconnectedFromDomain() {
|
||||||
|
|
|
@ -59,6 +59,10 @@ void DialogsManager::showFeed() {
|
||||||
emit setUseFeed(true);
|
emit setUseFeed(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DialogsManager::indicateDomainConnectionFailure() {
|
||||||
|
OffscreenUi::information("No Connection", "Unable to connect to this domain. Click the 'GO TO' button on the toolbar to visit another domain.");
|
||||||
|
}
|
||||||
|
|
||||||
void DialogsManager::toggleDiskCacheEditor() {
|
void DialogsManager::toggleDiskCacheEditor() {
|
||||||
maybeCreateDialog(_diskCacheEditor);
|
maybeCreateDialog(_diskCacheEditor);
|
||||||
_diskCacheEditor->toggle();
|
_diskCacheEditor->toggle();
|
||||||
|
|
|
@ -46,6 +46,7 @@ public slots:
|
||||||
void toggleAddressBar();
|
void toggleAddressBar();
|
||||||
void showAddressBar();
|
void showAddressBar();
|
||||||
void showFeed();
|
void showFeed();
|
||||||
|
void indicateDomainConnectionFailure();
|
||||||
void toggleDiskCacheEditor();
|
void toggleDiskCacheEditor();
|
||||||
void toggleLoginDialog();
|
void toggleLoginDialog();
|
||||||
void showLoginDialog();
|
void showLoginDialog();
|
||||||
|
|
Loading…
Reference in a new issue