chiark / gitweb /
where-vessels: disable "Show" for smash ownership when no notes
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 8 Aug 2010 19:58:53 +0000 (20:58 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 8 Aug 2010 19:59:57 +0000 (20:59 +0100)
yarrg/where-vessels

index b961e4e..78a2954 100755 (executable)
@@ -675,6 +675,7 @@ proc make-smashers {} {
     glset smash_owner [expr {[have-ownership] ? 0 : 3}]
     set cw [make-radio-smasher owner "Lock/\nowner" smash_owner \
                {Show Yours? {For you} Lock Hide} 2 3]
+    if {![have-notes]} { $cw.0 configure -state disabled }
     if {![have-ownership]} {
        foreach ix {1 2} { $cw.$ix configure -state disabled }
     }