mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 00:26:21 +00:00
Show indicator when form has unsaved changes
This commit is contained in:
@@ -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...)");
|
||||
|
||||
Reference in New Issue
Block a user