about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-04-18 00:26:17 +0100
committerJames Booth <boothj5@gmail.com>2016-04-18 00:26:17 +0100
commit12727744ab31b28eaec2f148f2ed22cdc7338a99 (patch)
tree6789de5138a20547ed46be1af8d26b8a48ccda1d /src/command/commands.c
parentde65f505a80ab2cee79fbcc01d24c9eed01691e1 (diff)
downloadprofani-tty-12727744ab31b28eaec2f148f2ed22cdc7338a99.tar.gz
Load/destroy tray icons on init/shutdown
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index e1eba540..50877227 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -5546,9 +5546,9 @@ cmd_tray(ProfWin *window, const char *const command, gchar **args)
     gboolean new = prefs_get_boolean(PREF_TRAY);
     if (old != new) {
         if (new) {
-            create_tray();
+            tray_enable();
         } else {
-            destroy_tray();
+            tray_disable();
         }
     }
     return TRUE;