mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Uniquify lines in error message to avoid overwhelming.
This commit is contained in:
@@ -1136,12 +1136,22 @@ proc FillCalWindow {} {
|
||||
}
|
||||
set problem [catch { close $file } errmsg]
|
||||
if {$problem} {
|
||||
set RemindErrors $errmsg
|
||||
set RemindErrors [unique_lines $errmsg]
|
||||
set_button_to_errors
|
||||
}
|
||||
DisplayTime
|
||||
}
|
||||
|
||||
proc unique_lines { s } {
|
||||
set l [split $s "\n"]
|
||||
foreach line $l {
|
||||
if {"$line" != ""} {
|
||||
dict set d $line 1
|
||||
}
|
||||
}
|
||||
return [join [dict keys $d] "\n"]
|
||||
}
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# MoveMonth -- move by +1 or -1 months
|
||||
# Arguments:
|
||||
|
||||
Reference in New Issue
Block a user