From a49f2fbef052f3a3f246bdb2e6b539521a29b7c3 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 28 Jun 2012 23:18:52 +0100 Subject: [PATCH] Removed dependency on preferences from status bar --- status_bar.c | 4 ---- windows.c | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/status_bar.c b/status_bar.c index 182e7843..ac303d39 100644 --- a/status_bar.c +++ b/status_bar.c @@ -27,7 +27,6 @@ #include "ui.h" #include "util.h" -#include "preferences.h" static WINDOW *status_bar; static char *message = NULL; @@ -160,9 +159,6 @@ void status_bar_new(const int win) wattroff(status_bar, COLOR_PAIR(3)); wattroff(status_bar, A_BLINK); - if (prefs_get_flash()) - flash(); - dirty = TRUE; } diff --git a/windows.c b/windows.c index 94e1bc25..11bd97e4 100644 --- a/windows.c +++ b/windows.c @@ -184,6 +184,8 @@ void win_show_incomming_msg(const char * const from, const char * const message) } else { status_bar_new(win_index); _cons_show_incoming_message(short_from, win_index); + if (prefs_get_flash()) + flash(); } if (prefs_get_beep())