GH-1726 better failure detection for updates
Instead of just checking if the new version started, make sure it is able to write its IPC key to a file and then use the key to connect to the process.
This commit is contained in:
@ -90,6 +90,7 @@
|
||||
#include "dialogs/ExportInstanceDialog.h"
|
||||
#include <FolderInstanceProvider.h>
|
||||
#include <InstanceImportTask.h>
|
||||
#include "UpdateController.h"
|
||||
|
||||
class MainWindow::Ui
|
||||
{
|
||||
@ -952,7 +953,8 @@ void MainWindow::downloadUpdates(GoUpdate::Status status)
|
||||
// If the task succeeds, install the updates.
|
||||
if (updateDlg.execWithTask(&updateTask))
|
||||
{
|
||||
MMC->installUpdates(updateTask.updateFilesDir(), updateTask.operations());
|
||||
UpdateController update(this, MMC->root(), updateTask.updateFilesDir(), updateTask.operations());
|
||||
update.installUpdates();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user