diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-15 09:28:39 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-15 09:29:01 +0200 |
commit | 618e415be858313404d1217cbc6c2d14480889a5 (patch) | |
tree | f64dd5ce7093d2c362e7063837f79a3535974b6a /src/ui/util.c | |
parent | 4c9b64718665381f491edbdcb6ffc8bcc5dbda4d (diff) |
Window: Show a little animation during downloads
The Stop/Reload button shows a little Unicode animation during downloads.
IssueID #101
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 6c9d75dc..e1db3129 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -370,6 +370,7 @@ static iBool isCommandIgnoredByMenus_(const char *cmd) { | |||
370 | return equal_Command(cmd, "media.updated") || equal_Command(cmd, "media.player.update") || | 370 | return equal_Command(cmd, "media.updated") || equal_Command(cmd, "media.player.update") || |
371 | startsWith_CStr(cmd, "feeds.update.") || | 371 | startsWith_CStr(cmd, "feeds.update.") || |
372 | equal_Command(cmd, "document.request.updated") || equal_Command(cmd, "window.resized") || | 372 | equal_Command(cmd, "document.request.updated") || equal_Command(cmd, "window.resized") || |
373 | equal_Command(cmd, "window.reload.update") || | ||
373 | (equal_Command(cmd, "mouse.clicked") && !arg_Command(cmd)); /* button released */ | 374 | (equal_Command(cmd, "mouse.clicked") && !arg_Command(cmd)); /* button released */ |
374 | } | 375 | } |
375 | 376 | ||
@@ -748,11 +749,6 @@ iWidget *makeSheet_Widget(const char *id) { | |||
748 | 749 | ||
749 | void centerSheet_Widget(iWidget *sheet) { | 750 | void centerSheet_Widget(iWidget *sheet) { |
750 | arrange_Widget(sheet->parent); | 751 | arrange_Widget(sheet->parent); |
751 | // const iInt2 rootSize = rootSize_Window(get_Window()); | ||
752 | // const iInt2 orig = localCoord_Widget( | ||
753 | // sheet->parent, | ||
754 | // init_I2(rootSize.x / 2 - sheet->rect.size.x / 2, bounds_Widget(sheet).pos.y)); | ||
755 | // sheet->rect.pos = orig; | ||
756 | postRefresh_App(); | 752 | postRefresh_App(); |
757 | } | 753 | } |
758 | 754 | ||