From 87d1468cf0dd65d6c27d77984aaf7256a62cbbde Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Fri, 3 Nov 2017 22:02:28 +0100 Subject: ZeroNotification: fix displaying menu item on startup --- plugins/ZeroNotification/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/ZeroNotification/src/main.cpp b/plugins/ZeroNotification/src/main.cpp index f199aba221..d4f6283b28 100644 --- a/plugins/ZeroNotification/src/main.cpp +++ b/plugins/ZeroNotification/src/main.cpp @@ -228,13 +228,13 @@ extern "C" __declspec(dllexport) int Load(void) CreateServiceFunction(MODNAME "/MenuCommand", NoSoundMenuCommand); CMenuItem mi; + SET_UID(mi, 0x6bd635eb, 0xc4bb, 0x413b, 0xb9, 0x3, 0x81, 0x6d, 0x8f, 0xf1, 0x9b, 0xb0); mi.position = -0x7FFFFFFF; mi.flags = CMIF_UNICODE; - UpdateMenuItem(); - - SET_UID(mi, 0x6bd635eb, 0xc4bb, 0x413b, 0xb9, 0x3, 0x81, 0x6d, 0x8f, 0xf1, 0x9b, 0xb0); mi.pszService = MODNAME "/MenuCommand"; noSoundMenu = Menu_AddMainMenuItem(&mi); + + UpdateMenuItem(); } HookEvent(ME_PROTO_ACK, ProtoAck); -- cgit v1.2.3