History

remove code to update/store wallet balance

Stephen Birarda committed 10 years ago

Commit ed1ddc21 parent 7dd85157 files · +1 −86Browse files

Showing the changes to interface/src/Application.cpp (1 of 7 files). Show all

Unified · Split

interface/src/Application.cpp+0−9
@@ -161,7 +161,6 @@ extern "C" { · 160 unmodified lines
161using namespace std;161using namespace std;
162 162
163static QTimer locationUpdateTimer;163static QTimer locationUpdateTimer;
164static QTimer balanceUpdateTimer;
165static QTimer identityPacketTimer;164static QTimer identityPacketTimer;
166static QTimer pingTimer;165static 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 AccountManager687 // 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 invokeMethod1189 // first stop all timers directly or by invokeMethod
1198 // depending on what thread they run in1190 // 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);