致命的 #734 » 0001-.patch
core/plugin/activity/activity.rb | ||
---|---|---|
94 | 94 |
Plugin::Settings::Listener.new \ |
95 | 95 |
get: ->(){ UserConfig[uc].include?(kind) rescue false }, |
96 | 96 |
set: ->(value) do |
97 |
UserConfig[uc] ||= [] |
|
98 | ||
97 | 99 |
if value |
98 | 100 |
UserConfig[uc] += [kind] |
99 | 101 |
else |
... | ... | |
103 | 105 |
Plugin::Settings::Listener.new \ |
104 | 106 |
get: ->(){ (not UserConfig[uc].include?(kind)) rescue true }, |
105 | 107 |
set: ->(value) do |
108 |
UserConfig[uc] ||= [] |
|
109 | ||
106 | 110 |
unless value |
107 | 111 |
UserConfig[uc] += [kind] |
108 | 112 |
else |