fix build errors in non-Apple code
parent
021383ffda
commit
d20fb20a67
|
|
@ -115,7 +115,7 @@ void AdvancedView::update(Cluster cluster)
|
||||||
#if __linux__ || __APPLE__
|
#if __linux__ || __APPLE__
|
||||||
sshButton->setEnabled(exists);
|
sshButton->setEnabled(exists);
|
||||||
#else
|
#else
|
||||||
basicSSHButton->setEnabled(false);
|
sshButton->setEnabled(false);
|
||||||
#endif
|
#endif
|
||||||
pauseButton->setText(getPauseLabel(isPaused));
|
pauseButton->setText(getPauseLabel(isPaused));
|
||||||
startButton->setText(getStartLabel(isRunning));
|
startButton->setText(getStartLabel(isRunning));
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ void BasicView::update(Cluster cluster)
|
||||||
#if __linux__ || __APPLE__
|
#if __linux__ || __APPLE__
|
||||||
sshButton->setEnabled(exists);
|
sshButton->setEnabled(exists);
|
||||||
#else
|
#else
|
||||||
basicSSHButton->setEnabled(false);
|
sshButton->setEnabled(false);
|
||||||
#endif
|
#endif
|
||||||
pauseButton->setText(getPauseLabel(isPaused));
|
pauseButton->setText(getPauseLabel(isPaused));
|
||||||
startButton->setText(getStartLabel(isRunning));
|
startButton->setText(getStartLabel(isRunning));
|
||||||
|
|
|
||||||
|
|
@ -194,12 +194,14 @@ void CommandRunner::outputReady()
|
||||||
emit output(text);
|
emit output(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if __APPLE__
|
||||||
void CommandRunner::setMinikubePath()
|
void CommandRunner::setMinikubePath()
|
||||||
{
|
{
|
||||||
m_env = QProcessEnvironment::systemEnvironment();
|
m_env = QProcessEnvironment::systemEnvironment();
|
||||||
QString path = m_env.value("PATH") + ":/usr/local/bin";
|
QString path = m_env.value("PATH") + ":/usr/local/bin";
|
||||||
m_env.insert("PATH", path);
|
m_env.insert("PATH", path);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void CommandRunner::minikubePath()
|
void CommandRunner::minikubePath()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue