enh(cpn): Cloudbuild support - phase 1 (#4856)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
/*
|
||||
* Copyright (C) OpenTX
|
||||
* Copyright (C) EdgeTX
|
||||
*
|
||||
* Based on code named
|
||||
* opentx - https://github.com/opentx/opentx
|
||||
* th9x - http://code.google.com/p/th9x
|
||||
* er9x - http://code.google.com/p/er9x
|
||||
* gruvin9x - http://code.google.com/p/gruvin9x
|
||||
@@ -27,7 +28,8 @@
|
||||
ProgressDialog::ProgressDialog(QWidget *parent, const QString &title, const QIcon &icon, bool forceOpen):
|
||||
QDialog(parent),
|
||||
ui(new Ui::ProgressDialog),
|
||||
locked(false)
|
||||
locked(false),
|
||||
keepOpen(false)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setWindowTitle(title);
|
||||
@@ -55,7 +57,8 @@ void ProgressDialog::on_closeButton_clicked()
|
||||
if (!locked) {
|
||||
ui->outputProgress->stop();
|
||||
emit rejected();
|
||||
close();
|
||||
if (!keepOpen)
|
||||
close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,3 +92,9 @@ void ProgressDialog::setProcessStopped()
|
||||
{
|
||||
ui->closeButton->setText(tr("Close"));
|
||||
}
|
||||
|
||||
void ProgressDialog::on_outputProgress_keepOpen(bool val)
|
||||
{
|
||||
keepOpen = val;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user