summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app.c b/src/app.c
index b7d43192..891f5d6e 100644
--- a/src/app.c
+++ b/src/app.c
@@ -1257,7 +1257,7 @@ iLocalDef iBool isWaitingAllowed_App_(iApp *d) {
1257 return iFalse; 1257 return iFalse;
1258 } 1258 }
1259#endif 1259#endif
1260 return !value_Atomic(&d->pendingRefresh) && isEmpty_SortedArray(&d->tickers); 1260 return !isRefreshPending_App();
1261} 1261}
1262 1262
1263static iBool nextEvent_App_(iApp *d, enum iAppEventMode eventMode, SDL_Event *event) { 1263static iBool nextEvent_App_(iApp *d, enum iAppEventMode eventMode, SDL_Event *event) {
@@ -1664,7 +1664,8 @@ void refresh_App(void) {
1664} 1664}
1665 1665
1666iBool isRefreshPending_App(void) { 1666iBool isRefreshPending_App(void) {
1667 return value_Atomic(&app_.pendingRefresh); 1667 const iApp *d = &app_;
1668 return !isEmpty_SortedArray(&d->tickers) || value_Atomic(&app_.pendingRefresh);
1668} 1669}
1669 1670
1670iBool isFinishedLaunching_App(void) { 1671iBool isFinishedLaunching_App(void) {