refresh cluster list when reopening GUI

pull/14008/head
Steven Powell 2022-04-21 14:28:47 -07:00
parent 57ecdfd1f8
commit ce11be3417
2 changed files with 8 additions and 1 deletions

View File

@ -224,12 +224,18 @@ void Window::createActions()
connect(minimizeAction, &QAction::triggered, this, &QWidget::hide);
restoreAction = new QAction(tr("&Restore"), this);
connect(restoreAction, &QAction::triggered, this, &QWidget::showNormal);
connect(restoreAction, &QAction::triggered, this, &Window::restoreWindow);
quitAction = new QAction(tr("&Quit"), this);
connect(quitAction, &QAction::triggered, qApp, &QCoreApplication::quit);
}
void Window::restoreWindow()
{
QWidget::showNormal();
updateClusters();
}
static QString minikubePath()
{
QString program = QStandardPaths::findExecutable("minikube");

View File

@ -174,6 +174,7 @@ private:
QLabel *createLabel(QString title, QString text, QFormLayout *form, bool isLink);
void checkForMinikube();
void restoreWindow();
QProcessEnvironment setMacEnv();
QStackedWidget *stackedWidget;
bool isBasicView;