Showing the changes to interface/src/Application.cpp (1 of 7 files). Show all
Unified · Split
| @@ -161,7 +161,6 @@ extern "C" { · 160 unmodified lines | |||
| 161 | using namespace std; | 161 | using namespace std; |
| 162 | 162 | ||
| 163 | static QTimer locationUpdateTimer; | 163 | static QTimer locationUpdateTimer; |
| 164 | static QTimer balanceUpdateTimer; | ||
| 165 | static QTimer identityPacketTimer; | 164 | static QTimer identityPacketTimer; |
| 166 | static QTimer pingTimer; | 165 | static QTimer pingTimer; |
| 167 | 166 | ||
| @@ -688,13 +687,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 520 unmodified lines | |||
| 688 | // connect to appropriate slots on AccountManager | 687 | // connect to appropriate slots on AccountManager |
| 689 | AccountManager& accountManager = AccountManager::getInstance(); | 688 | AccountManager& accountManager = AccountManager::getInstance(); |
| 690 | 689 | ||
| 691 | const qint64 BALANCE_UPDATE_INTERVAL_MSECS = 5 * MSECS_PER_SEC; | ||
| 692 | |||
| 693 | connect(&balanceUpdateTimer, &QTimer::timeout, &accountManager, &AccountManager::updateBalance); | ||
| 694 | balanceUpdateTimer.start(BALANCE_UPDATE_INTERVAL_MSECS); | ||
| 695 | |||
| 696 | connect(&accountManager, &AccountManager::balanceChanged, this, &Application::updateWindowTitle); | ||
| 697 | |||
| 698 | auto dialogsManager = DependencyManager::get<DialogsManager>(); | 690 | auto dialogsManager = DependencyManager::get<DialogsManager>(); |
| 699 | connect(&accountManager, &AccountManager::authRequired, dialogsManager.data(), &DialogsManager::showLoginDialog); | 691 | connect(&accountManager, &AccountManager::authRequired, dialogsManager.data(), &DialogsManager::showLoginDialog); |
| 700 | connect(&accountManager, &AccountManager::usernameChanged, this, &Application::updateWindowTitle); | 692 | connect(&accountManager, &AccountManager::usernameChanged, this, &Application::updateWindowTitle); |
| @@ -1197,7 +1189,6 @@ void Application::cleanupBeforeQuit() { · 496 unmodified lines | |||
| 1197 | // first stop all timers directly or by invokeMethod | 1189 | // first stop all timers directly or by invokeMethod |
| 1198 | // depending on what thread they run in | 1190 | // depending on what thread they run in |
| 1199 | locationUpdateTimer.stop(); | 1191 | locationUpdateTimer.stop(); |
| 1200 | balanceUpdateTimer.stop(); | ||
| 1201 | identityPacketTimer.stop(); | 1192 | identityPacketTimer.stop(); |
| 1202 | pingTimer.stop(); | 1193 | pingTimer.stop(); |
| 1203 | QMetaObject::invokeMethod(&_settingsTimer, "stop", Qt::BlockingQueuedConnection); | 1194 | QMetaObject::invokeMethod(&_settingsTimer, "stop", Qt::BlockingQueuedConnection); |