lib/ayadn/view.rb in ayadn-1.4.2 vs lib/ayadn/view.rb in ayadn-1.4.3

- old
+ new

@@ -79,11 +79,13 @@ table = Terminal::Table.new do |t| t.style = { :width => Settings.options[:formats][:table][:width], border_x: ' ', border_i: ' ', border_y: ' ' } t.title = "Current Ayadn settings".color(:cyan) t.headings = [ "Category".color(:red), "Parameter".color(:red), "Value(s)".color(:red) ] @iter = 0 - Settings.options.each do |k,v| + opts = Settings.options.dup + opts.each do |k,v| + v.delete_if {|ke,_| ke == :deleted || ke == :annotations } # not mutable values v.each do |x,y| t << :separator if @iter >= 1 unless y.is_a?(Hash) t << [ k.to_s.color(:cyan), x.to_s.color(:yellow), y.to_s.color(:green) ] else @@ -93,9 +95,10 @@ end @iter += 1 end end end + clear_screen() puts table end def show_userinfos(content, token) if content['name']