1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Removed dependency on preferences from status bar

This commit is contained in:
James Booth 2012-06-28 23:18:52 +01:00
parent c6cb13a54f
commit a49f2fbef0
2 changed files with 2 additions and 4 deletions

View File

@ -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;
}

View File

@ -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())