aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-01-22 13:17:49 +0100
committerMichael Vetter <jubalh@iodoru.org>2021-01-22 13:17:49 +0100
commit6a17e9d50ebeb7217a21a3147088fb3822f95459 (patch)
treee861312a9efc2d5e78d5f493e5ef1d2143568c9c /src
parenta01c963b4604a24b1556e137b92aa1230abcac63 (diff)
downloadprofani-tty-6a17e9d50ebeb7217a21a3147088fb3822f95459.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/command/cmd_funcs.c21
1 files changed, 0 insertions, 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;