From 3bde9d383a107760ee56ebc7f780154bfd3f3de7 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 19 Dec 2020 10:26:23 +0200 Subject: Remote bookmark sources Bookmarks tagged "remotesource" are fetched and all links are treated as remote bookmarks. Remote bookmarks are not saved locally. --- src/ui/util.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/ui/util.c') diff --git a/src/ui/util.c b/src/ui/util.c index 9bd40e80..1118758b 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -376,7 +376,9 @@ iWidget *addAction_Widget(iWidget *parent, int key, int kmods, const char *comma static iBool isCommandIgnoredByMenus_(const char *cmd) { return equal_Command(cmd, "media.updated") || equal_Command(cmd, "media.player.update") || startsWith_CStr(cmd, "feeds.update.") || - equal_Command(cmd, "document.request.updated") || equal_Command(cmd, "window.resized") || + equal_Command(cmd, "document.request.updated") || + equal_Command(cmd, "bookmarks.request.finished") || + equal_Command(cmd, "window.resized") || equal_Command(cmd, "window.reload.update") || (equal_Command(cmd, "mouse.clicked") && !arg_Command(cmd)); /* button released */ } @@ -893,7 +895,9 @@ void updateValueInput_Widget(iWidget *d, const char *title, const char *prompt) static iBool messageHandler_(iWidget *msg, const char *cmd) { /* Almost any command dismisses the sheet. */ - if (!(equal_Command(cmd, "media.updated") || equal_Command(cmd, "media.player.update") || + if (!(equal_Command(cmd, "media.updated") || + equal_Command(cmd, "media.player.update") || + equal_Command(cmd, "bookmarks.request.finished") || equal_Command(cmd, "document.request.updated") || startsWith_CStr(cmd, "window."))) { destroy_Widget(msg); } -- cgit v1.2.3