Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

logview: do not add all columns on init

If it adds all columns in construct_treeview() on init, all data for
columns are requested even if the column is hidden. To prevent requesting
of high-cost value ('changes' column), we have to add only columns to be
shown really.

Note that, by this change, you must call set_columns() function before
displaying this. TreeView is no longer add columns in default.

Changeset a1eb5844b2e3

Parent c02191832be8

by Yuki KODAMA

Changes to one file · Browse files at a1eb5844b2e3 Showing diff from parent c02191832be8 Diff from another changeset...

 
542
543
544
545
546
547
548
549
550
551
552
 
542
543
544
 
 
 
 
 
545
546
547
@@ -542,11 +542,6 @@
    self.columns = COLS.split()   - # append columns - for cn in self.columns: - c = self.tvcolumns[cn] - self.treeview.append_column(c) -   def set_columns(self, columns):   if ' '.join(columns) != ' '.join(self.columns):   for cn in self.columns: