fix start tray action not being enabled

pull/14194/head
Steven Powell 2022-05-18 17:53:35 -07:00
parent c41e2e638e
commit 3e2221cd28
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ static QString getStartLabel(bool isRunning)
void Tray::updateTrayActions(Cluster cluster)
{
startAction->setEnabled(true);
bool isRunning = cluster.status() == "Running";
bool isPaused = cluster.status() == "Paused";
pauseAction->setEnabled(isRunning || isPaused);