update:加入检测更新信号

This commit is contained in:
2025-09-13 18:16:58 +08:00
parent a78ee36ae7
commit 6799dff2c5
2 changed files with 2 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ public:
signals:
void updateDisplay(const QString &packageName);
void updateFinished(bool success); //传递是否完成更新
private slots:
void updateSpinner(); // 新增槽函数

View File

@@ -264,7 +264,7 @@ void MainWindow::runAptssUpgrade()
void MainWindow::closeEvent(QCloseEvent *event)
{
QMessageBox::StandardButton reply = QMessageBox::question(this, "确认关闭", "正在更新,是否确认关闭窗口?", QMessageBox::Yes | QMessageBox::No);
QMessageBox::StandardButton reply = QMessageBox::question(this, "确认关闭", "正在更新,是否确认关闭窗口?", QMessageBox::Yes | QMessageBox::No);
}
MainWindow::~MainWindow()
{