Now sends desktop notification periodically to remind of unread messages
This commit is contained in:
@@ -41,7 +41,7 @@ static log_level_t _get_log_level(char *log_level);
|
||||
gboolean _process_input(char *inp);
|
||||
static void _create_config_directory();
|
||||
|
||||
static gdouble remind_period = 0;
|
||||
static gdouble remind_period = 10;
|
||||
|
||||
void
|
||||
profanity_run(void)
|
||||
@@ -65,10 +65,8 @@ profanity_run(void)
|
||||
|
||||
// 0 means to not remind
|
||||
if (remind_period > 0 && elapsed >= remind_period) {
|
||||
if (win_get_unread() > 0) {
|
||||
log_info("Unread : %d", win_get_unread());
|
||||
g_timer_start(timer);
|
||||
}
|
||||
win_remind();
|
||||
g_timer_start(timer);
|
||||
}
|
||||
|
||||
win_handle_special_keys(&ch);
|
||||
|
||||
Reference in New Issue
Block a user