mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +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]
|
set problem [catch { close $file } errmsg]
|
||||||
if {$problem} {
|
if {$problem} {
|
||||||
set RemindErrors $errmsg
|
set RemindErrors [unique_lines $errmsg]
|
||||||
set_button_to_errors
|
set_button_to_errors
|
||||||
}
|
}
|
||||||
DisplayTime
|
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
|
# MoveMonth -- move by +1 or -1 months
|
||||||
# Arguments:
|
# Arguments:
|
||||||
|
|||||||
Reference in New Issue
Block a user