~izidor/gtg/bug1002463

« back to all changes in this revision

Viewing changes to GTG/core/plugins/api.py

  • Committer: Izidor Matušov
  • Date: 2012-04-22 12:29:43 UTC
  • Revision ID: izidor.matusov@gmail.com-20120422122943-wgfe80tlnoy16j3u
When option 'Background colors' is changed, refresh all nodes

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
        else:
190
190
            info_col = 'task_id'
191
191
 
192
 
        for pane in browser.vtree_panes:
193
 
            pane = browser.vtree_panes[pane]
 
192
        for pane in browser.vtree_panes.itervalues():
194
193
            pane.set_bg_color(func, info_col)
195
 
            # FIXME: Added a parameter to the reset_filters call because
196
 
            # otherwise all old completed tasks are re-shown and unable
197
 
            # to be marked as done
198
 
            #pane.basetree.reset_filters()
199
 
            pane.basetree.reset_filters(transparent_only=True)
 
194
            pane.basetree.get_basetree().refresh_all()
200
195
 
201
196
#=== file saving/loading ======================================================
202
197