Skip to content

Commit

Permalink
Merge pull request #4 from maxcorbin/master
Browse files Browse the repository at this point in the history
fixing update_config issue
  • Loading branch information
dropofwill committed Apr 16, 2017
2 parents 400f62c + dfaf0a0 commit f0e36f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/rtasklib/controller.rb
Expand Up @@ -369,11 +369,11 @@ def create_uda! name, type: "string", label: nil, values: nil,
default: nil, urgency: nil
label = name if label.nil?

update_config("uda.#{name}.type", type)
update_config("uda.#{name}.label", label)
update_config("uda.#{name}.values", values) unless values.nil?
update_config("uda.#{name}.default", default) unless default.nil?
update_config("uda.#{name}.urgency", urgency) unless urgency.nil?
update_config!("uda.#{name}.type", type)
update_config!("uda.#{name}.label", label)
update_config!("uda.#{name}.values", values) unless values.nil?
update_config!("uda.#{name}.default", default) unless default.nil?
update_config!("uda.#{name}.urgency", urgency) unless urgency.nil?
end

# Sync the local TaskWarrior database changes to the remote databases.
Expand Down

0 comments on commit f0e36f7

Please sign in to comment.