update: show some usefull osd-output while updating hd51

Origin commit data
------------------
Commit: 3a3f972213
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-06 (Sat, 06 Jan 2018)

Origin message was:
------------------
- update: show some usefull osd-output while updating hd51
This commit is contained in:
vanhofen
2018-01-06 00:06:40 +01:00
parent 59e9d43480
commit fdbacd4121

View File

@@ -485,14 +485,7 @@ bool CFlashUpdate::checkVersion4Update()
//!always leave here!
return false;
}
#if HAVE_ARM_HARDWARE
//tgz package install:
else if (file_selected->getType() == CFile::FILE_TGZ_PACKAGE){
fileType = 'Z';
//!always leave here!
return true;
}
#endif
//set internal filetype
char const * ptr = rindex(filename.c_str(), '.');
if(ptr) {
@@ -501,6 +494,8 @@ bool CFlashUpdate::checkVersion4Update()
fileType = 'A';
else if(!strcmp(ptr, "txt"))
fileType = 'T';
else if(!strcmp(ptr, "tgz"))
fileType = 'Z';
else if(!allow_flash)
return false;
else
@@ -573,7 +568,7 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
return menu_return::RETURN_REPAINT;
}
if(softupdate_mode==1) { //internet-update
if ( ShowMsg(LOCALE_MESSAGEBOX_INFO, (fileType <= '2') ? LOCALE_FLASHUPDATE_INSTALL_IMAGE : LOCALE_FLASHUPDATE_INSTALL_PACKAGE, CMsgBox::mbrYes, CMsgBox::mbYes | CMsgBox::mbNo, NEUTRINO_ICON_UPDATE) != CMsgBox::mbrYes)
if ( ShowMsg(LOCALE_MESSAGEBOX_INFO, ((fileType <= '2') || (fileType == 'Z')) ? LOCALE_FLASHUPDATE_INSTALL_IMAGE : LOCALE_FLASHUPDATE_INSTALL_PACKAGE, CMsgBox::mbrYes, CMsgBox::mbYes | CMsgBox::mbNo, NEUTRINO_ICON_UPDATE) != CMsgBox::mbrYes)
{
hide();
return menu_return::RETURN_REPAINT;