Commit 1c1c5a8a authored by Richard Hughes's avatar Richard Hughes

Add a big red warning to all device firmware updates

parent 63b20bf1
......@@ -139,6 +139,15 @@ gs_app_row_refresh (GsAppRow *app_row)
/* join the lines*/
str = gs_app_row_get_description (app_row);
gs_string_replace (str, "\n", " ");
/* add warning */
if (gs_app_get_kind (priv->app) == GS_APP_KIND_FIRMWARE_UPDATE) {
g_string_append_printf (str, "\n\n<span foreground=\"red\" font_weight=\"bold\">%s</span>",
/* TRANSLATORS: during the update the device
* will restart into a special update-only mode */
_("Device cannot be used during update."));
}
gtk_label_set_markup (GTK_LABEL (priv->description_label), str->str);
g_string_free (str, TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment