mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-17 23:05:03 -05:00
Hide "Count" column in HistoryDialog
This commit is contained in:
parent
cf4314708a
commit
5818685e1f
@ -170,15 +170,11 @@ class HistoryDialog extends JDialog {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// clear sequence selection when elements are selected
|
// clear sequence selection when elements are selected
|
||||||
elementTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
|
elementTable.getSelectionModel().addListSelectionListener(evt -> {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void valueChanged(ListSelectionEvent e) {
|
|
||||||
if (elementTable.getSelectedRow() >= 0) {
|
if (elementTable.getSelectedRow() >= 0) {
|
||||||
// allow selected rows only in one of the two tables
|
// allow selected rows only in one of the two tables
|
||||||
sequenceTable.getSelectionModel().clearSelection();
|
sequenceTable.getSelectionModel().clearSelection();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// sort by number descending
|
// sort by number descending
|
||||||
@ -718,17 +714,14 @@ class HistoryDialog extends JDialog {
|
|||||||
case 1:
|
case 1:
|
||||||
return "Name";
|
return "Name";
|
||||||
case 2:
|
case 2:
|
||||||
return "Count";
|
|
||||||
case 3:
|
|
||||||
return "Date";
|
return "Date";
|
||||||
default:
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getColumnCount() {
|
public int getColumnCount() {
|
||||||
return 4;
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -744,12 +737,9 @@ class HistoryDialog extends JDialog {
|
|||||||
case 1:
|
case 1:
|
||||||
return String.class;
|
return String.class;
|
||||||
case 2:
|
case 2:
|
||||||
return Integer.class;
|
|
||||||
case 3:
|
|
||||||
return Date.class;
|
return Date.class;
|
||||||
default:
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -760,12 +750,9 @@ class HistoryDialog extends JDialog {
|
|||||||
case 1:
|
case 1:
|
||||||
return getName(data.get(row));
|
return getName(data.get(row));
|
||||||
case 2:
|
case 2:
|
||||||
return data.get(row).elements().size();
|
|
||||||
case 3:
|
|
||||||
return data.get(row).date();
|
return data.get(row).date();
|
||||||
default:
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Sequence getRow(int row) {
|
public Sequence getRow(int row) {
|
||||||
|
Loading…
Reference in New Issue
Block a user