views/pop.rb in Pratt-1.5.8 vs views/pop.rb in Pratt-1.6.2

- old
+ new

@@ -25,25 +25,19 @@ end opt.parse! end yes = proc { - c = fork { system("ruby bin/pratt.rb --restart '#{opts.project_name}' --unlock") } + c = fork { system("ruby bin/pratt.rb --project '#{opts.project_name}' --restart --unlock") } Process.detach(c) exit } adjust = proc { - c = fork { system("ruby bin/pratt.rb --end '#{opts.project_name}' --unlock --gui") } + c = fork { system("ruby bin/pratt.rb --project '#{opts.project_name}' --end --unlock --gui") } Process.detach(c) exit } -ignore = proc { - Process.detach( - fork { system("ruby bin/pratt.rb --unlock") } - ) - exit -} root = TkRoot.new { title "Pratt Reminder" } frm = Tk::Tile::Frame.new(root) { padding "5 5 5 5" } top_frm = Tk::Tile::Frame.new(frm) { padding "5 5 5 5" } @@ -69,17 +63,9 @@ command yes underline 0 end.pack('side' => 'left', :fill => 'y') root.bind("Alt-y", yes) #root.bind("Return", yes) - -TkButton.new(botm_frm) do - text "Ignore" - command ignore - underline 0 -end.pack('side' => 'right', :fill => 'y') -root.bind("Alt-i", ignore) -root.bind("Escape", ignore) TkButton.new(botm_frm) do text "Adjust" command adjust underline 0