From 5492992c1cdae510ac3ecf655e9d66daedd9ad3c Mon Sep 17 00:00:00 2001 From: Kevin Walzer Date: Wed, 28 Oct 2020 02:50:18 +0000 Subject: Add error handling for sysnotify on Windows if systray icon not created --- library/systray.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/systray.tcl b/library/systray.tcl index 462c8fb..0a18e08 100644 --- a/library/systray.tcl +++ b/library/systray.tcl @@ -318,7 +318,7 @@ proc ::tk::sysnotify {title message} { switch -- [tk windowingsystem] { "win32" { - if {![info exists $::winicoprops::ico]} { + if {$::winicoprops::ico eq ""} { error "Must create a system tray icon with the \"tk systray\" command" } _sysnotify notify $::winicoprops::ico $title $message -- cgit v0.12