Show dots when loading for some entertainment
This commit is contained in:
@@ -384,6 +384,13 @@ void ConnectionLoader::refreshZcashdState(Connection* connection, std::function<
|
||||
!res.is_discarded()) {
|
||||
// The server is loading, so just poll until it succeeds
|
||||
QString status = QString::fromStdString(res["error"]["message"]);
|
||||
{
|
||||
static int dots = 0;
|
||||
status = status.left(status.length() - 3) + QString(".").repeated(dots);
|
||||
dots++;
|
||||
if (dots > 3)
|
||||
dots = 0;
|
||||
}
|
||||
this->showInformation("Your zcashd is starting up. Please wait.", status);
|
||||
|
||||
// Refresh after one second
|
||||
|
||||
Reference in New Issue
Block a user