Manager: Disable resizing the "Searching for VMs" window

and the update checker window
This commit is contained in:
Alexander Babikov
2025-07-27 04:38:55 +05:00
parent b42b735c25
commit cbd5991273
3 changed files with 4 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ UpdateCheckDialog(const UpdateCheck::UpdateChannel channel, QWidget *parent) : Q
ui->setupUi(this); ui->setupUi(this);
setWindowTitle(tr("Update check")); setWindowTitle(tr("Update check"));
ui->statusLabel->setHidden(true); ui->statusLabel->setHidden(true);
this->setFixedSize(400, 130);
updateChannel = channel; updateChannel = channel;
currentVersion = UpdateCheck::getCurrentVersion(updateChannel); currentVersion = UpdateCheck::getCurrentVersion(updateChannel);
connect(updateCheck, &UpdateCheck::updateCheckError, [=](const QString &errorMsg) { connect(updateCheck, &UpdateCheck::updateCheckError, [=](const QString &errorMsg) {

View File

@@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>350</width> <width>400</width>
<height>134</height> <height>130</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">

View File

@@ -126,6 +126,7 @@ VMManagerSystem::scanForConfigs(QWidget* parent, const QString &searchPath)
progDialog.setMinimum(0); progDialog.setMinimum(0);
progDialog.setMaximum(0); progDialog.setMaximum(0);
progDialog.setWindowFlags(progDialog.windowFlags() & ~Qt::WindowCloseButtonHint); progDialog.setWindowFlags(progDialog.windowFlags() & ~Qt::WindowCloseButtonHint);
progDialog.setFixedSize(progDialog.sizeHint());
QElapsedTimer scanTimer; QElapsedTimer scanTimer;
scanTimer.start(); scanTimer.start();
QVector<VMManagerSystem *> system_configs; QVector<VMManagerSystem *> system_configs;