mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
fix: 将aptss升级失败的错误提示从弹窗改为日志输出
This commit is contained in:
@@ -330,7 +330,7 @@ void MainWindow::runAptssUpgrade()
|
||||
}
|
||||
|
||||
if (!process.waitForStarted(5000)) {
|
||||
QMessageBox::warning(this, "升级失败", "无法启动 aptss ssupdate");
|
||||
qDebug() << "无法启动 aptss ssupdate";
|
||||
return;
|
||||
}
|
||||
process.write("n\n");
|
||||
@@ -344,7 +344,7 @@ void MainWindow::runAptssUpgrade()
|
||||
}
|
||||
|
||||
if (process.exitCode() != 0) {
|
||||
QMessageBox::warning(this, "升级失败", "执行 aptss ssupdate 失败,请检查系统环境或稍后再试。");
|
||||
qDebug() << "执行 aptss ssupdate 失败,请检查系统环境或稍后再试。";
|
||||
}
|
||||
} else {
|
||||
qDebug() << "aptss命令不存在,跳过aptss ssupdate";
|
||||
|
||||
Reference in New Issue
Block a user