Remove the Machine menu (broken), also make sure buttons are not improperly enabled (#4)

This commit is contained in:
Cacodemon345
2025-05-31 23:45:43 +06:00
committed by GitHub
parent 89ef30ffde
commit 33b511fef8
3 changed files with 27 additions and 16 deletions

View File

@@ -72,6 +72,7 @@ VMManagerDetailSection(const QString &sectionName)
ui->collapseButtonHolder->layout()->addItem(hSpacer);
// collapseButton->setContent(frame);
// ui->sectionName->setVisible(false);
setVisible(false);
}
VMManagerDetailSection::
@@ -227,11 +228,14 @@ VMManagerDetailSection::setSections()
}
}
collapseButton->setContent(ui->detailFrame);
if (sections.size())
setVisible(true);
}
void
VMManagerDetailSection::clear()
{
sections.clear();
setVisible(false);
}
// QT for Linux and Windows doesn't have the same default margins as QT on MacOS.