1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Dont reload theme when disconnecting on purpose

I don't see why would need to.
Also this only happens upon `/disconnect` not on a network outage or
server related disconnect.

Fixes https://github.com/profanity-im/profanity/issues/1472
This commit is contained in:
Michael Vetter 2021-01-22 13:17:49 +01:00
parent a01c963b46
commit 6a17e9d50e

View File

@ -1283,27 +1283,6 @@ cmd_disconnect(ProfWin* window, const char* const command, gchar** args)
cl_ev_disconnect(); cl_ev_disconnect();
char* theme = prefs_get_string(PREF_THEME);
if (theme) {
gboolean res = theme_load(theme, false);
g_free(theme);
if (!res) {
theme_load("default", false);
}
} else {
theme_load("default", false);
}
ui_load_colours();
if (prefs_get_boolean(PREF_ROSTER)) {
ui_show_roster();
} else {
ui_hide_roster();
}
if (prefs_get_boolean(PREF_OCCUPANTS)) {
ui_show_all_room_rosters();
} else {
ui_hide_all_room_rosters();
}
ui_redraw(); ui_redraw();
return TRUE; return TRUE;