Skip to content

Commit d3750b6

Browse files
committed
Show the clock #210
1 parent ece1d89 commit d3750b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Extension/Utils.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,20 @@ void n2e_InitClock()
155155
n2e_UpdateClockMenuItem();
156156
iClockUpdateTimerId = SetTimer(NULL, 0, iClockUpdateInterval, n2e_ClockTimerProc);
157157
}
158+
else
159+
{
160+
iClockUpdateTimerId = 0;
161+
}
158162
}
159163

160164
void n2e_ReleaseClock()
161165
{
162166
if (iClockUpdateTimerId)
163167
{
164168
KillTimer(NULL, iClockUpdateTimerId);
169+
const HMENU hmenu = GetMenu(hwndMain);
170+
DeleteMenu(hmenu, GetMenuItemCount(hmenu) - 1, MF_BYPOSITION);
171+
DrawMenuBar(hwndMain);
165172
}
166173
}
167174

0 commit comments

Comments
 (0)