diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-26 17:43:49 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-26 17:43:49 +0200 |
commit | 7787cdd1c32ab1f48f5aee50024409702864a2e7 (patch) | |
tree | 0aa04bb3f1ef59e4a341fa8c357980e5d7ae6c89 /src/app.c | |
parent | 57bd24d57826e0fe6ca49b9e378bd2ddb90278c2 (diff) |
Feeds: Manual refresh
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1246,6 +1246,21 @@ iBool handleCommand_App(const char *cmd) { | |||
1246 | save_Bookmarks(d->bookmarks, dataDir_App_); | 1246 | save_Bookmarks(d->bookmarks, dataDir_App_); |
1247 | return iFalse; | 1247 | return iFalse; |
1248 | } | 1248 | } |
1249 | else if (equal_Command(cmd, "feeds.refresh")) { | ||
1250 | refresh_Feeds(); | ||
1251 | return iTrue; | ||
1252 | } | ||
1253 | else if (equal_Command(cmd, "feeds.update.started")) { | ||
1254 | setFlags_Widget(findWidget_App("feeds.progress"), hidden_WidgetFlag, iFalse); | ||
1255 | refresh_App(); | ||
1256 | return iFalse; | ||
1257 | } | ||
1258 | else if (equal_Command(cmd, "feeds.update.finished")) { | ||
1259 | setFlags_Widget(findWidget_App("feeds.progress"), hidden_WidgetFlag, iTrue); | ||
1260 | refreshFinished_Feeds(); | ||
1261 | refresh_App(); | ||
1262 | return iFalse; | ||
1263 | } | ||
1249 | else if (equal_Command(cmd, "visited.changed")) { | 1264 | else if (equal_Command(cmd, "visited.changed")) { |
1250 | save_Visited(d->visited, dataDir_App_); | 1265 | save_Visited(d->visited, dataDir_App_); |
1251 | return iFalse; | 1266 | return iFalse; |