https://git.reactos.org/?p=reactos.git;a=commitdiff;h=96b7cb1a4ff9a378ee315…
commit 96b7cb1a4ff9a378ee315fa270b961f5437c305f
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Fri Jan 24 14:47:58 2020 +0100
Commit: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
CommitDate: Sun Apr 26 21:41:39 2020 +0300
[EXPLORER] trayclock: Update timer delay when showing seconds is modified
---
base/shell/explorer/trayclock.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/base/shell/explorer/trayclock.cpp b/base/shell/explorer/trayclock.cpp
index e2ccc4a4a87..9736ffbc8b8 100644
--- a/base/shell/explorer/trayclock.cpp
+++ b/base/shell/explorer/trayclock.cpp
@@ -696,7 +696,12 @@ LRESULT CTrayClockWnd::OnTaskbarSettingsChanged(UINT uMsg, WPARAM
wParam, LPARAM
if (newSettings->bShowSeconds != g_TaskbarSettings.bShowSeconds)
{
g_TaskbarSettings.bShowSeconds = newSettings->bShowSeconds;
- bRealign = TRUE;
+ if (!g_TaskbarSettings.sr.HideClock)
+ {
+ bRealign = TRUE;
+
+ ResetTime();
+ }
}
if (newSettings->sr.HideClock != g_TaskbarSettings.sr.HideClock)