Permalink
Browse files

finally can use the title intelligently

  • Loading branch information...
1 parent cffa245 commit df8d2c653522f1b7357ddfc699e85ec097775b54 @rdp committed Apr 11, 2012
Showing with 2 additions and 3 deletions.
  1. +1 −2 lib/count_down_timer_jruby_swing.rb
  2. +1 −1 lib/jruby-swing-helpers
@@ -78,10 +78,8 @@ def initialize
minutes = (seconds_left/60).to_i
if seconds_left > 60
current_time = "#{minutes}m"
- set_title current_time
else
current_time = "%2ds" % seconds_left
- set_title "#{seconds_left}s" % seconds_left
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
@@ -112,6 +110,7 @@ def setup_pomo_name minutes
@name = "break!"
end
@name_label.text=@name
+ set_title @name
end
end

0 comments on commit df8d2c6

Please sign in to comment.