(svn r7402) -Fix: [FS#255] Long Delay for Message Windows to Appear. Immediately show a new message
if present if no news window is open, or has just been closed instead of waiting for the timer of the current news to time out.
This commit is contained in:
10
news_gui.c
10
news_gui.c
@@ -471,15 +471,11 @@ static bool ReadyForNextItem(void)
|
|||||||
w = FindWindowById(WC_STATUS_BAR, 0);
|
w = FindWindowById(WC_STATUS_BAR, 0);
|
||||||
if (w != NULL && WP(w, const def_d).data_1 > -1280) return false;
|
if (w != NULL && WP(w, const def_d).data_1 > -1280) return false;
|
||||||
|
|
||||||
// Newspaper message
|
// Newspaper message, decrement duration counter
|
||||||
// Wait until duration reaches 0
|
if (ni->duration != 0) ni->duration--;
|
||||||
if (ni->duration != 0) {
|
|
||||||
ni->duration--;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// neither newsticker nor newspaper are running
|
// neither newsticker nor newspaper are running
|
||||||
return true;
|
return (ni->duration == 0 || FindWindowById(WC_NEWS_WINDOW, 0) == NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void MoveToNextItem(void)
|
static void MoveToNextItem(void)
|
||||||
|
Reference in New Issue
Block a user