mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
use the header click event to ensure that the filters get updated
correctly
This commit is contained in:
parent
fb0adbcded
commit
7420c6f12f
1 changed files with 9 additions and 5 deletions
|
@ -77,15 +77,19 @@ Deluge.Sidebar = Ext.extend(Ext.Panel, {
|
|||
panel.on('selectionchange', function(view, nodes) {
|
||||
deluge.ui.update();
|
||||
});
|
||||
panel.on('show', function() {
|
||||
if (!deluge.config.sidebar_multiple_filters) {
|
||||
deluge.ui.update();
|
||||
}
|
||||
});
|
||||
this.add(panel);
|
||||
|
||||
this.doLayout();
|
||||
this.panels[filter] = panel;
|
||||
|
||||
panel.header.on('click', function(panel) {
|
||||
if (!deluge.config.sidebar_multiple_filters) {
|
||||
deluge.ui.update();
|
||||
}
|
||||
if (panel.list.getSelectionCount()) {
|
||||
panel.list.select(0);
|
||||
}
|
||||
});
|
||||
this.fireEvent('filtercreate', this, panel);
|
||||
|
||||
panel.updateStates(states);
|
||||
|
|
Loading…
Add table
Reference in a new issue