mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-17 00:41:11 +00:00
Fix 'Finish' button not being enabled if updater fails with an error reading the update script.
UpdateObserver::updateFinished() was not being called by UpdateInstaller. Add a call to updateFinished() in UpdateInstaller::reportError()
This commit is contained in:
parent
6d862cbba7
commit
76f164e3c0
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,7 @@ void UpdateInstaller::reportError(const std::string& error)
|
|||
if (m_observer)
|
||||
{
|
||||
m_observer->updateError(error);
|
||||
m_observer->updateFinished();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -84,6 +85,7 @@ void UpdateInstaller::run() throw ()
|
|||
catch (const FileUtils::IOException& ex)
|
||||
{
|
||||
LOG(Error,"error reading process path with mode " + intToStr(m_mode));
|
||||
reportError("Unable to determine path of updater");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue