Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

icon_time again :)

  • Loading branch information...
commit 081805c4b268937a272cd51d7b2886acc8f46078 1 parent 5f2f0b0
@rdp authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/count_down_timer_jruby_swing.rb
View
4 lib/count_down_timer_jruby_swing.rb
@@ -78,11 +78,13 @@ def initialize
minutes = (seconds_left/60).to_i
if seconds_left > 60
current_time = "#{minutes}m"
+ icon_time = minutes.to_s
else
current_time = "%2ds" % seconds_left
+ icon_time = current_time # have the 's' in there
end
@time_remaining_label.set_text current_time
- self.icon_image=CreateIconFromNumbers.get_letters_as_icon(seconds_left/60) # don't include the m of 24m
+ self.icon_image=CreateIconFromNumbers.get_letters_as_icon(icon_time)
end
end
@switch_image_timer.start
Please sign in to comment.
Something went wrong with that request. Please try again.