[gnome-initial-setup/wip/pwithnall/misc-fixes: 59/70] summary: show a different message on persistent live sessions




commit aab54bcd5d6063aea65a5a5df0e7501bf33c0ff1
Author: Daniel Drake <drake endlessm com>
Date:   Fri Oct 4 11:47:06 2019 +0800

    summary: show a different message on persistent live sessions
    
    When running in persistent live mode, the user's files will be retained
    over reboot. The limitation that is now worth communicating instead is
    that OS updates can't happen in live mode.
    
    https://phabricator.endlessm.com/T27772

 gnome-initial-setup/pages/summary/gis-summary-page.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.c 
b/gnome-initial-setup/pages/summary/gis-summary-page.c
index c525c4d2..66214b10 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.c
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.c
@@ -264,9 +264,14 @@ gis_summary_page_constructed (GObject *object)
   {
     gtk_label_set_label (GTK_LABEL (priv->title),
                          _("You're ready to try Endless OS"));
-    gtk_label_set_markup (GTK_LABEL (priv->tagline),
-                          _("<b>Any files you download or documents you create will be "
-                            "lost forever when you restart or shutdown the computer.</b>"));
+    if (gis_driver_has_live_persistence (GIS_PAGE (object)->driver))
+      gtk_label_set_markup (GTK_LABEL (priv->tagline),
+                            _("<b>System software updates are unavailable when running from "
+                              "evaluation media. Please install Endless if you like it!</b>"));
+    else
+      gtk_label_set_markup (GTK_LABEL (priv->tagline),
+                            _("<b>Any files you download or documents you create will be "
+                              "lost forever when you restart or shutdown the computer.</b>"));
   }
 
   gtk_widget_show (GTK_WIDGET (page));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]