From 6a17e9d50ebeb7217a21a3147088fb3822f95459 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 22 Jan 2021 13:17:49 +0100 Subject: [PATCH] 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 --- src/command/cmd_funcs.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index d8e3eaf9..c227b79d 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -1283,27 +1283,6 @@ cmd_disconnect(ProfWin* window, const char* const command, gchar** args) 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(); return TRUE;