mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 12:36:21 +00:00
Removed dependency on preferences from status bar
This commit is contained in:
@@ -27,7 +27,6 @@
|
|||||||
|
|
||||||
#include "ui.h"
|
#include "ui.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "preferences.h"
|
|
||||||
|
|
||||||
static WINDOW *status_bar;
|
static WINDOW *status_bar;
|
||||||
static char *message = NULL;
|
static char *message = NULL;
|
||||||
@@ -160,9 +159,6 @@ void status_bar_new(const int win)
|
|||||||
wattroff(status_bar, COLOR_PAIR(3));
|
wattroff(status_bar, COLOR_PAIR(3));
|
||||||
wattroff(status_bar, A_BLINK);
|
wattroff(status_bar, A_BLINK);
|
||||||
|
|
||||||
if (prefs_get_flash())
|
|
||||||
flash();
|
|
||||||
|
|
||||||
dirty = TRUE;
|
dirty = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -184,6 +184,8 @@ void win_show_incomming_msg(const char * const from, const char * const message)
|
|||||||
} else {
|
} else {
|
||||||
status_bar_new(win_index);
|
status_bar_new(win_index);
|
||||||
_cons_show_incoming_message(short_from, win_index);
|
_cons_show_incoming_message(short_from, win_index);
|
||||||
|
if (prefs_get_flash())
|
||||||
|
flash();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prefs_get_beep())
|
if (prefs_get_beep())
|
||||||
|
|||||||
Reference in New Issue
Block a user