1
0
Fork 0

Fix empty window after reconnect

Sometimes after a reconnect the current window would get cleared. This
was a deliberate change to fix the profanity window looking all garbled
up after providing the passphrase for a gpg key using pinentry-curses.

Fixes https://github.com/profanity-im/profanity/issues/1556
This commit is contained in:
MarcoPolo-PasTonMolo 2023-04-02 17:48:51 +03:00
parent f2c83fa8ce
commit ce688f6737
2 changed files with 5 additions and 1 deletions

View File

@ -160,7 +160,7 @@ sv_ev_roster_received(void)
// Redraw the screen after entry of the PGP secret key, but not init
ProfWin* win = wins_get_current();
char* theme = prefs_get_string(PREF_THEME);
win_clear(win);
win_redraw(win);
theme_init(theme);
g_free(theme);
ui_resize();

View File

@ -1367,6 +1367,10 @@ void
win_clear(ProfWin* window)
{
}
void
win_redraw(ProfWin* window)
{
}
char*
win_to_string(ProfWin* window)
{