Update mainwindow_grpc.cpp

This commit is contained in:
parhelia512 2025-08-14 23:17:15 +08:00 committed by GitHub
parent 7e972bb8f8
commit fb6cdcb3b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -519,7 +519,7 @@ void MainWindow::profile_start(int _id) {
auto restartMsgbox = new QMessageBox(QMessageBox::Question, software_name, tr("If there is no response for a long time, it is recommended to restart the software."),
QMessageBox::Yes | QMessageBox::No, this);
connect(restartMsgbox, &QMessageBox::accepted, this, [=,this] { MW_dialog_message("", "RestartProgram"); });
auto restartMsgboxTimer = new MessageBoxTimer(this, restartMsgbox, 5000);
auto restartMsgboxTimer = new MessageBoxTimer(this, restartMsgbox, 10000);
runOnNewThread([=, this] {
// stop current running