Permalink
Browse files

refresh_all tweak

  • Loading branch information...
1 parent b88b797 commit eae8bffbcd0cf6e5adc9b8881f0699d148886462 @jimm committed Apr 17, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/patchmaster/app/main.rb
View
5 lib/patchmaster/app/main.rb
@@ -146,8 +146,9 @@ def message(str)
def refresh_all
set_window_data
- [@song_lists_win, @song_list_win, @song_win, @patch_win].map(&:draw)
- [stdscr, @song_lists_win, @song_list_win, @song_win, @info_win, @patch_win, @trigger_win].map(&:refresh)
+ wins = [@song_lists_win, @song_list_win, @song_win, @patch_win, @info_win, @trigger_win]
+ wins.map(&:draw)
+ ([stdscr] + wins).map(&:refresh)
end
def set_window_data

0 comments on commit eae8bff

Please sign in to comment.