fix: Remove unnecessary theme_init call (mem leak)

Simple `ui_resize` is sufficient for rerendering all the elements.
Other calls create complexity, slow down the applications and even introduce mem leaks.

`ui_resize` technique is already used widely, including `cmd_editor` case.

Fixes #4
This commit is contained in:
2025-06-24 15:10:26 +02:00
parent b4d3563b96
commit 7d1e1c726d

View File

@@ -156,14 +156,7 @@ sv_ev_roster_received(void)
if (!p_gpg_valid_key(account->pgp_keyid, &err_str)) {
cons_show_error("Invalid PGP key ID specified: %s, %s", account->pgp_keyid, err_str);
}
// Redraw the screen after entry of the PGP secret key, but not init
ProfWin* win = wins_get_current();
auto_gchar gchar* theme = prefs_get_string(PREF_THEME);
win_redraw(win);
theme_init(theme);
ui_resize();
ui_show_roster();
}
account_free(account);
#endif