lib/ProMotion/tabs/tabs.rb in ProMotion-2.4.2 vs lib/ProMotion/tabs/tabs.rb in ProMotion-2.5.0.beta1
- old
+ new
@@ -48,13 +48,16 @@
item
end
def create_tab_bar_item(tab={})
- if tab[:system_icon] || tab[:icon]
- mp("`system_icon:` no longer supported. Use `system_item:` instead.", force_color: :yellow) if tab[:system_icon]
- mp("`icon:` no longer supported. Use `item:` instead.", force_color: :yellow) if tab[:icon]
+ if tab[:system_icon]
+ mp("`system_icon:` no longer supported. Use `system_item:` instead.", force_color: :yellow)
tab[:system_item] ||= tab[:system_icon]
+ end
+
+ if tab[:icon]
+ mp("`icon:` no longer supported. Use `item:` instead.", force_color: :yellow)
tab[:item] ||= tab[:icon]
end
unless tab[:system_item] || tab[:item]
mp "You must provide either a `system_item:` or custom `item:` in `tab_bar_item`", force_color: :yellow