refresh cluster list when reopening GUI
parent
57ecdfd1f8
commit
ce11be3417
|
@ -224,12 +224,18 @@ void Window::createActions()
|
||||||
connect(minimizeAction, &QAction::triggered, this, &QWidget::hide);
|
connect(minimizeAction, &QAction::triggered, this, &QWidget::hide);
|
||||||
|
|
||||||
restoreAction = new QAction(tr("&Restore"), this);
|
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);
|
quitAction = new QAction(tr("&Quit"), this);
|
||||||
connect(quitAction, &QAction::triggered, qApp, &QCoreApplication::quit);
|
connect(quitAction, &QAction::triggered, qApp, &QCoreApplication::quit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Window::restoreWindow()
|
||||||
|
{
|
||||||
|
QWidget::showNormal();
|
||||||
|
updateClusters();
|
||||||
|
}
|
||||||
|
|
||||||
static QString minikubePath()
|
static QString minikubePath()
|
||||||
{
|
{
|
||||||
QString program = QStandardPaths::findExecutable("minikube");
|
QString program = QStandardPaths::findExecutable("minikube");
|
||||||
|
|
|
@ -174,6 +174,7 @@ private:
|
||||||
QLabel *createLabel(QString title, QString text, QFormLayout *form, bool isLink);
|
QLabel *createLabel(QString title, QString text, QFormLayout *form, bool isLink);
|
||||||
|
|
||||||
void checkForMinikube();
|
void checkForMinikube();
|
||||||
|
void restoreWindow();
|
||||||
QProcessEnvironment setMacEnv();
|
QProcessEnvironment setMacEnv();
|
||||||
QStackedWidget *stackedWidget;
|
QStackedWidget *stackedWidget;
|
||||||
bool isBasicView;
|
bool isBasicView;
|
||||||
|
|
Loading…
Reference in New Issue