Merge "Add user preference to disable showing size bars in change tables"
This commit is contained in:
@@ -236,9 +236,16 @@ public class ChangeTable2 extends NavigationTable<ChangeInfo> {
|
||||
}
|
||||
int col = C_SIZE;
|
||||
if (useNewFeatures) {
|
||||
table.setWidget(row, col, getSizeWidget(c));
|
||||
fmt.getElement(row, col).setTitle(
|
||||
Util.M.insertionsAndDeletions(c.insertions(), c.deletions()));
|
||||
if (Gerrit.isSignedIn()
|
||||
&& !Gerrit.getUserAccount().getGeneralPreferences()
|
||||
.isSizeBarInChangeTable()) {
|
||||
table.setText(row, col,
|
||||
Util.M.insertionsAndDeletions(c.insertions(), c.deletions()));
|
||||
} else {
|
||||
table.setWidget(row, col, getSizeWidget(c));
|
||||
fmt.getElement(row, col).setTitle(
|
||||
Util.M.insertionsAndDeletions(c.insertions(), c.deletions()));
|
||||
}
|
||||
col++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user