Show indicator when form has unsaved changes

This commit is contained in:
James Booth
2014-09-16 22:23:59 +01:00
parent ef8b8e637d
commit 16acb52ca3
3 changed files with 15 additions and 10 deletions

View File

@@ -86,10 +86,10 @@ title_bar_update_virtual(void)
g_timer_destroy(typing_elapsed);
typing_elapsed = NULL;
_title_bar_draw();
}
}
}
_title_bar_draw();
}
void
@@ -241,6 +241,14 @@ _title_bar_draw(void)
}
#endif
// show indicator for unsaved forms
ProfWin *current = wins_get_current();
if ((current != NULL ) && (current->type == WIN_MUC_CONFIG)) {
if ((current->form != NULL) && (current->form->modified)) {
wprintw(win, " *");
}
}
// show contact typing
if (typing) {
wprintw(win, " (typing...)");