mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-12 16:03:36 +02:00
opkg: move showHeader() under show_progress condition
Origin commit data
------------------
Branch: ni/coolstream
Commit: 06e6b1b9df
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-01-10 (Fri, 10 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <gui/opkg_manager.h>
|
#include "opkg_manager.h"
|
||||||
#include <gui/widget/termwindow.h>
|
#include <gui/widget/termwindow.h>
|
||||||
/* hack, so we don't have to change all code below */
|
/* hack, so we don't have to change all code below */
|
||||||
#define CShellWindow CTermWindow
|
#define CShellWindow CTermWindow
|
||||||
@@ -463,9 +463,9 @@ bool COPKGManager::checkUpdates(const std::string & package_name, bool show_prog
|
|||||||
|
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
CProgressWindow status;
|
CProgressWindow status;
|
||||||
status.showHeader(false);
|
|
||||||
|
|
||||||
if (show_progress){
|
if (show_progress){
|
||||||
|
status.showHeader(false);
|
||||||
status.paint();
|
status.paint();
|
||||||
status.showStatusMessageUTF(g_Locale->getText(LOCALE_OPKG_UPDATE_READING_LISTS));
|
status.showStatusMessageUTF(g_Locale->getText(LOCALE_OPKG_UPDATE_READING_LISTS));
|
||||||
status.showStatus(25); /* after do_update, we have actually done the hardest work already */
|
status.showStatus(25); /* after do_update, we have actually done the hardest work already */
|
||||||
|
Reference in New Issue
Block a user