mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 09:23:17 +02:00
Merge pull request #8836 from howard-stearns/explicit-disconnnect-dialog
switchable placeholder for domain-connection failure, currently a modal
This commit is contained in:
commit
6ae6fc4057
3 changed files with 6 additions and 1 deletions
|
@ -34,7 +34,7 @@ void ConnectionMonitor::init() {
|
|||
}
|
||||
|
||||
auto dialogsManager = DependencyManager::get<DialogsManager>();
|
||||
connect(&_timer, &QTimer::timeout, dialogsManager.data(), &DialogsManager::showAddressBar);
|
||||
connect(&_timer, &QTimer::timeout, dialogsManager.data(), &DialogsManager::indicateDomainConnectionFailure);
|
||||
}
|
||||
|
||||
void ConnectionMonitor::disconnectedFromDomain() {
|
||||
|
|
|
@ -59,6 +59,10 @@ void DialogsManager::showFeed() {
|
|||
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() {
|
||||
maybeCreateDialog(_diskCacheEditor);
|
||||
_diskCacheEditor->toggle();
|
||||
|
|
|
@ -46,6 +46,7 @@ public slots:
|
|||
void toggleAddressBar();
|
||||
void showAddressBar();
|
||||
void showFeed();
|
||||
void indicateDomainConnectionFailure();
|
||||
void toggleDiskCacheEditor();
|
||||
void toggleLoginDialog();
|
||||
void showLoginDialog();
|
||||
|
|
Loading…
Reference in a new issue