From 439ffc068f9fe42b35fdd9d14864e7fea153d274 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 25 Oct 2017 00:05:16 +0200 Subject: [PATCH] update: fix osd flickering Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/6709cffc6ea35233e3142d0145d41b74d1fca3b7 Author: vanhofen Date: 2017-10-25 (Wed, 25 Oct 2017) Origin message was: ------------------ - update: fix osd flickering --- src/gui/update.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/update.cpp b/src/gui/update.cpp index e0172311c..25d564ba0 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -669,6 +669,12 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey) #ifndef DRYRUN my_system(3, ofgwrite_tgz, g_settings.update_dir.c_str(), filename.c_str()); #endif + /* + ofgwrite is killing Neutrino. + So we stay here and wait for our end. This avoids osd flickering. + */ + while (true) + sleep(1); } #endif else // not image, install