diff --git a/core/plugin/gtk/toolbar_generator.rb b/core/plugin/gtk/toolbar_generator.rb index 1df8a15b..b9b24714 100644 --- a/core/plugin/gtk/toolbar_generator.rb +++ b/core/plugin/gtk/toolbar_generator.rb @@ -12,7 +12,8 @@ module Plugin::Gtk def self.generate(container, event, role) Thread.new{ Plugin.filtering(:command, {}).first.values.select{ |command| - command[:icon] and command[:role] == role and command[:condition] === event } + command[:visible] == true and command[:icon] and + command[:role] == role and command[:condition] === event } }.next{ |commands| commands.each{ |command| face = command[:show_face] || command[:name] || command[:slug].to_s