diff --git a/src/gui/widget/shellwindow.cpp b/src/gui/widget/shellwindow.cpp index e9771be34..1f7f27b1a 100644 --- a/src/gui/widget/shellwindow.cpp +++ b/src/gui/widget/shellwindow.cpp @@ -201,25 +201,31 @@ void CShellWindow::exec() void CShellWindow::showResult() { if (textBox){ + bool show_button = false; bool exit = false; - if (mode & ACKNOWLEDGE){ - int b_width = 150; - int b_height = 35; - int xpos = frameBuffer->getScreenWidth() - b_width; - int ypos = frameBuffer->getScreenHeight() - b_height; - CComponentsButton btn(xpos, ypos, b_width, b_height, LOCALE_MESSAGEBOX_OK, NEUTRINO_ICON_BUTTON_OKAY, NULL, true, true); - btn.paint(); + if (mode & ACKNOWLEDGE){ + show_button = true; } else if (mode & ACKNOWLEDGE_MSG){ if (*res != 0){ DisplayErrorMessage("Please press button"); + show_button = true; }else{ DisplayInfoMessage("...ready. Please press OK"); exit = true; } } + if (show_button){ + int b_width = 150; + int b_height = 35; + int xpos = frameBuffer->getScreenWidth() - b_width; + int ypos = frameBuffer->getScreenHeight() - b_height; + CComponentsButton btn(xpos, ypos, b_width, b_height, LOCALE_MESSAGEBOX_OK, NEUTRINO_ICON_BUTTON_OKAY, NULL, true, true); + btn.paint(); + } + neutrino_msg_t msg; neutrino_msg_data_t data; uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings::TIMING_MENU]);