Properly react to changes in extra remind args.

This commit is contained in:
Dianne Skoll
2018-12-07 14:54:02 -05:00
parent 4445e9c434
commit bbda972b05

View File

@@ -696,10 +696,19 @@ proc ApplyOptions { w } {
set tmpOpt(MailAddr) [$w.email_address get]
set tmpOpt(SMTPServer) [$w.smtp get]
set need_restart 0
if {"$tmpOpt(ExtraRemindArgs)" != "$Option(ExtraRemindArgs)"} {
set need_restart 1
}
# Copy working copy to real option set
foreach name [array names tmpOpt] {
set Option($name) $tmpOpt($name)
}
if {$need_restart != 0} {
FillCalWindow
StopBackgroundRemindDaemon
StartBackgroundRemindDaemon
}
}
#***********************************************************************