Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

refresh_all tweak

  • Loading branch information...
commit eae8bffbcd0cf6e5adc9b8881f0699d148886462 1 parent b88b797
Jim Menard authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/patchmaster/app/main.rb
5 lib/patchmaster/app/main.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.