Lagrange [work/v1.12]

Added menu items for exporting user data

=> 2503a3550f5d44af3d7db9f0703815491ced9c33

diff --git a/src/ui/root.c b/src/ui/root.c
index a5177558..21c366d9 100644
--- a/src/ui/root.c
+++ b/src/ui/root.c
@@ -71,11 +71,12 @@ static const iMenuItem navMenuItems_[] = {
     { "${menu.zoom.out}", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" },
     { "${menu.zoom.reset}", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" },
     { "---" },
-    { book_Icon " ${menu.bookmarks.list}", 0, 0, "!open url:about:bookmarks" },
-    { "${menu.bookmarks.bytag}", 0, 0, "!open url:about:bookmarks?tags" },
-    { "${menu.feeds.entrylist}", 0, 0, "!open url:about:feeds" },
+//    { book_Icon " ${menu.bookmarks.list}", 0, 0, "!open url:about:bookmarks" },
+//    { "${menu.bookmarks.bytag}", 0, 0, "!open url:about:bookmarks?tags" },
 //    { "${menu.bookmarks.bytime}", 0, 0, "!open url:about:bookmarks?created" },
+    { "${menu.feeds.entrylist}", 0, 0, "!open url:about:feeds" },
     { "${menu.downloads}", 0, 0, "downloads.open" },
+    { export_Icon " ${menu.export}", 0, 0, "export" },
     { "---" },
     { gear_Icon " ${menu.preferences}", SDLK_COMMA, KMOD_PRIMARY, "preferences" },
  #if defined (LAGRANGE_ENABLE_WINSPARKLE)
diff --git a/src/ui/util.c b/src/ui/util.c
index a1e1adcf..786c3422 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -2697,6 +2697,8 @@ iWidget *makePreferences_Widget(void) {
             { "panel icon:0x1f3a8 id:heading.prefs.colors", 0, 0, (const void *) colorPanelItems },
             { "panel icon:0x1f5da id:heading.prefs.fonts", 0, 0, (const void *) fontPanelItems },
             { "panel icon:0x1f660 id:heading.prefs.style", 0, 0, (const void *) stylePanelItems },
+            { "padding" },
+            { "button text:" export_Icon " " uiTextAction_ColorEscape "${menu.export}", 0, 0, "export " },
             { "heading id:heading.prefs.support" },
             { "button text:" info_Icon " ${menu.help}", 0, 0, "!open url:about:help" },
             { "panel text:" planet_Icon " ${menu.about}", 0, 0, (const void *) aboutPanelItems },
diff --git a/src/ui/widget.c b/src/ui/widget.c
index 269ce5ea..cfc65f5b 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -1223,7 +1223,7 @@ iBool dispatchEvent_Widget(iWidget *d, const SDL_Event *ev) {
         }
         iAssert(get_Root() == d->root);
         if (class_Widget(d)->processEvent(d, ev)) {
-            iAssert(get_Root() == d->root);
+            //iAssert(get_Root() == d->root);
             return iTrue;
         }
     }
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.12/cdiff/2503a3550f5d44af3d7db9f0703815491ced9c33
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
69.271936 milliseconds
Gemini-to-HTML Time
0.20625 milliseconds

This content has been proxied by September (3851b).