aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 814fbcf5..76a4e7ba 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1224,8 +1224,8 @@ void main_window_reflect_prefs_all(void)
if (prefs_common.show_trayicon)
trayicon_show(mainwin->tray_icon);
else {
- /* trayicon is automatically restored after this */
- trayicon_destroy(mainwin->tray_icon);
+ /* trayicon is automatically replaced by new one */
+ trayicon_hide(mainwin->tray_icon);
}
}