fix start tray action not being enabled
parent
c41e2e638e
commit
3e2221cd28
|
|
@ -99,6 +99,7 @@ static QString getStartLabel(bool isRunning)
|
||||||
|
|
||||||
void Tray::updateTrayActions(Cluster cluster)
|
void Tray::updateTrayActions(Cluster cluster)
|
||||||
{
|
{
|
||||||
|
startAction->setEnabled(true);
|
||||||
bool isRunning = cluster.status() == "Running";
|
bool isRunning = cluster.status() == "Running";
|
||||||
bool isPaused = cluster.status() == "Paused";
|
bool isPaused = cluster.status() == "Paused";
|
||||||
pauseAction->setEnabled(isRunning || isPaused);
|
pauseAction->setEnabled(isRunning || isPaused);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue