Extended displayed messages in text-edit.
This commit is contained in:
parent
44ad3caf2b
commit
4ad370ea46
30
worker.cpp
30
worker.cpp
@ -132,6 +132,8 @@ void Worker::privateUpdate() {
|
|||||||
QDir customerRepository(m_customerRepository);
|
QDir customerRepository(m_customerRepository);
|
||||||
if (!customerRepository.exists()) {
|
if (!customerRepository.exists()) {
|
||||||
if (m_gc.gitCloneAndCheckoutBranch()) {
|
if (m_gc.gitCloneAndCheckoutBranch()) {
|
||||||
|
emit appendText("\nInitializing customer environment", UPDATE_STEP_DONE);
|
||||||
|
|
||||||
m_updateStatus = UpdateStatus(UPDATE_STATUS::UPDATE_PROCESS_SUCCESS,
|
m_updateStatus = UpdateStatus(UPDATE_STATUS::UPDATE_PROCESS_SUCCESS,
|
||||||
QString("CLONED AND CHECKED OUT: ") + m_customerRepository);
|
QString("CLONED AND CHECKED OUT: ") + m_customerRepository);
|
||||||
|
|
||||||
@ -144,13 +146,17 @@ void Worker::privateUpdate() {
|
|||||||
QString("#M=APISM#C=CMD_EVENT#J=") +
|
QString("#M=APISM#C=CMD_EVENT#J=") +
|
||||||
m_ismasClient.updateOfPSASucceeded(""));
|
m_ismasClient.updateOfPSASucceeded(""));
|
||||||
|
|
||||||
emit setProgress(95);
|
emit appendText(QString(""), UPDATE_STEP_SUCCESS);
|
||||||
m_ismasClient.setProgressInPercent(95);
|
|
||||||
|
emit setProgress(100);
|
||||||
|
m_ismasClient.setProgressInPercent(100);
|
||||||
IsmasClient::sendRequestReceiveResponse(IsmasClient::APISM::DB_PORT,
|
IsmasClient::sendRequestReceiveResponse(IsmasClient::APISM::DB_PORT,
|
||||||
QString("#M=APISM#C=CMD_EVENT#J=") + m_ismasClient.updateOfPSAActivated());
|
QString("#M=APISM#C=CMD_EVENT#J=") + m_ismasClient.updateOfPSAActivated());
|
||||||
|
|
||||||
m_returnCode = 0;
|
m_returnCode = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
qCritical() << "CHECKOUT BRANCH...";
|
||||||
// checkout branch
|
// checkout branch
|
||||||
if (m_gc.gitCheckoutBranch()) {
|
if (m_gc.gitCheckoutBranch()) {
|
||||||
int progress = 10;
|
int progress = 10;
|
||||||
@ -228,23 +234,19 @@ void Worker::privateUpdate() {
|
|||||||
m_returnCode = -1;
|
m_returnCode = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit setProgress(100);
|
||||||
|
m_ismasClient.setProgressInPercent(100);
|
||||||
|
|
||||||
if (!sentIsmasLastVersionNotification) {
|
if (!sentIsmasLastVersionNotification) {
|
||||||
// try even if the backend is not connected
|
// try even if the backend is not connected
|
||||||
emit setProgress(100);
|
|
||||||
m_ismasClient.setProgressInPercent(100);
|
|
||||||
|
|
||||||
if (m_returnCode == 0) {
|
|
||||||
IsmasClient::sendRequestReceiveResponse(IsmasClient::APISM::DB_PORT,
|
|
||||||
QString("#M=APISM#C=CMD_EVENT#J=") +
|
|
||||||
m_ismasClient.updateOfPSASucceeded(""));
|
|
||||||
emit appendText(QString(""), UPDATE_STEP_SUCCESS);
|
|
||||||
} else {
|
|
||||||
emit appendText(QString(""), UPDATE_STEP_FAIL);
|
|
||||||
}
|
|
||||||
|
|
||||||
sendIsmasLastVersionNotification();
|
sendIsmasLastVersionNotification();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_returnCode != 0) {
|
||||||
|
emit appendText(QString("Update process "), UPDATE_STEP_FAIL);
|
||||||
|
}
|
||||||
|
|
||||||
m_updateProcessRunning = false;
|
m_updateProcessRunning = false;
|
||||||
emit enableExit();
|
emit enableExit();
|
||||||
emit restartExitTimer();
|
emit restartExitTimer();
|
||||||
|
Loading…
Reference in New Issue
Block a user