refresh cluster list when reopening GUI
parent
57ecdfd1f8
commit
ce11be3417
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue