1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 08:26:45 +02:00

busy status mutes beeping

This commit is contained in:
Jfreegman
2013-12-09 19:25:09 -05:00
parent a833be730f
commit 44d9f7fe61
4 changed files with 8 additions and 6 deletions

View File

@ -10,6 +10,8 @@
#include "toxic_windows.h"
#include "misc_tools.h"
extern ToxWindow *prompt;
// XXX: FIX
unsigned char *hex_string_to_bin(char hex_string[])
{
@ -153,8 +155,10 @@ void alert_window(ToxWindow *self, int type, bool is_beep)
self->alert2 = true;
break;
}
if (is_beep)
StatusBar *stb = prompt->stb;
if (is_beep && stb->status != TOX_USERSTATUS_BUSY)
beep();
}