Ticket #300: toolbar_item_ordering.diff
| File toolbar_item_ordering.diff, 0.8 KB (added by dj2@…, 3 years ago) |
|---|
-
lib/hotcocoa/mappings/toolbar.rb
51 51 def build_custom_items 52 52 if @allowed && @default 53 53 ary = @default.select { |x| x.is_a?(NSToolbarItem) } 54 @default -= ary 54 55 @default.map! { |x| x.is_a?(NSToolbarItem) ? x.itemIdentifier : x } 56 @allowed.map! { |x| x.is_a?(NSToolbarItem) ? x.itemIdentifier : x } 57 55 58 @custom_items = {} 56 59 ary.each { |x| @custom_items[x.itemIdentifier] = x } 57 @allowed.concat(@custom_items.keys)58 @default.concat(@custom_items.keys)59 60 60 61 [@allowed, @default].each do |a| 61 62 a.map! do |i|

