バグ #1202 » toolbar_visible.diff
core/plugin/gtk/toolbar_generator.rb | ||
---|---|---|
12 | 12 |
def self.generate(container, event, role) |
13 | 13 |
Thread.new{ |
14 | 14 |
Plugin.filtering(:command, {}).first.values.select{ |command| |
15 |
command[:icon] and command[:role] == role and command[:condition] === event } |
|
15 |
command[:visible] == true and command[:icon] and |
|
16 |
command[:role] == role and command[:condition] === event } |
|
16 | 17 |
}.next{ |commands| |
17 | 18 |
commands.each{ |command| |
18 | 19 |
face = command[:show_face] || command[:name] || command[:slug].to_s |