Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -3791,6 +3791,19 @@ void Application::attachNewHeadToNode(Node* newNode) { · 3790 unmodified lines | ||
| 3791 | 3791 | } |
| 3792 | 3792 | } |
| 3793 | 3793 | |
| 3794 | +void Application::updateWindowTitle(){ | |
| 3795 | + QString title = ""; | |
| 3796 | + QString username = _profile.getUsername(); | |
| 3797 | + if(!username.isEmpty()){ | |
| 3798 | + title += _profile.getUsername(); | |
| 3799 | + title += " @ "; | |
| 3800 | + } | |
| 3801 | + title += _profile.getLastDomain(); | |
| 3802 | + | |
| 3803 | + qDebug("Application title set to: %s.\n", title.toStdString().c_str()); | |
| 3804 | + _window->setWindowTitle(title); | |
| 3805 | +} | |
| 3806 | + | |
| 3794 | 3807 | void Application::domainChanged(QString domain) { |
| 3795 | 3808 | qDebug("Application title set to: %s.\n", domain.toStdString().c_str()); |
| 3796 | 3809 | _window->setWindowTitle(domain); |