Skip to content

Commit

Permalink
check hidden flag better
Browse files Browse the repository at this point in the history
  • Loading branch information
kostya committed Jan 13, 2014
1 parent c655bfc commit 3085f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/eye/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def add_group(group)

# sort processes in name order
def resort_groups
@groups = @groups.sort { |a, b| a.name == '__default__' ? 1 : (b.name == '__default__' ? -1 : (a.name <=> b.name)) }
@groups = @groups.sort { |a, b| a.hidden ? 1 : (b.hidden ? -1 : (a.name <=> b.name)) }
end

def status_data(debug = false)
Expand Down

0 comments on commit 3085f60

Please sign in to comment.