MCPcopy Create free account
hub / github.com/cc20110101/RedisView / refreshConnInfo

Method refreshConnInfo

src/RedisView/AppView/MainWindow.cpp:572–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572void MainWindow::refreshConnInfo() {
573 if(_mainWidget->getTaskSize() > 0) {
574 QMessageBox::information(this,tr("错误"),tr("后台任务未完成,请稍后刷新连接!"));
575 return;
576 }
577
578 if(_redisClient) {
579 if(_redisClient->openCluster()) {
580 _mainWidget->reOpenClient();
581 } else {
582 QMessageBox::information(this,tr("错误"),_redisClient->getErrorInfo());
583 }
584 } else {
585 QMessageBox::information(this,tr("错误"),tr("客户端连接为空!"));
586 }
587}
588
589void MainWindow::keyView() {
590 _mainWidget->openView();

Callers

nothing calls this directly

Calls 4

getTaskSizeMethod · 0.80
openClusterMethod · 0.80
reOpenClientMethod · 0.80
getErrorInfoMethod · 0.45

Tested by

no test coverage detected