- neutrino: add "need_reboot" feature

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-11-14 22:43:39 +01:00
committed by Thilo Graf
parent f0fb14a741
commit 2cb4fc0ff9
6 changed files with 12 additions and 0 deletions

View File

@@ -1821,6 +1821,7 @@ typedef enum
LOCALE_MESSAGEBOX_ERROR,
LOCALE_MESSAGEBOX_FEATURE_NOT_SUPPORTED,
LOCALE_MESSAGEBOX_INFO,
LOCALE_MESSAGEBOX_NEED_REBOOT,
LOCALE_MESSAGEBOX_NO,
LOCALE_MESSAGEBOX_OK,
LOCALE_MESSAGEBOX_YES,

View File

@@ -1821,6 +1821,7 @@ const char * locale_real_names[] =
"messagebox.error",
"messagebox.feature_not_supported",
"messagebox.info",
"messagebox.need_reboot",
"messagebox.no",
"messagebox.ok",
"messagebox.yes",

View File

@@ -206,6 +206,8 @@ bool CFlagFileNotifier::changeNotify(const neutrino_locale_t, void * data)
}
remove(flagfile.c_str());
}
if (strstr(filename, "ciplushelper"))
CNeutrinoApp::getInstance()->exec(NULL, "need_reboot");
return menu_return::RETURN_REPAINT;
}