バグ #959 » multiselect.patch
core/plugin/settings/multiselect.rb (revision ) | ||
---|---|---|
69 | 69 |
if setting.is_a? Gtk::Widget |
70 | 70 |
->(widget) do |
71 | 71 |
if widget.active? |
72 |
listener.set((listener.get || []) + [value]) |
|
72 |
listener.set((listener.get || []) + [value]) unless (listener.get || []).include?(value)
|
|
73 | 73 |
else |
74 | 74 |
listener.set((listener.get || []) - [value]) end |
75 | 75 |
setting.sensitive = widget.active? |
... | ... | |
77 | 77 |
else |
78 | 78 |
->(widget) do |
79 | 79 |
if widget.active? |
80 |
listener.set((listener.get || []) + [value]) |
|
80 |
listener.set((listener.get || []) + [value]) unless (listener.get || []).include?(value)
|
|
81 | 81 |
else |
82 | 82 |
listener.set((listener.get || []) - [value]) end |
83 | 83 |
false end end end |