mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
fix the header click event handler
This commit is contained in:
parent
0f12200f6f
commit
5b6faa47b0
@ -82,11 +82,11 @@ Deluge.Sidebar = Ext.extend(Ext.Panel, {
|
|||||||
this.doLayout();
|
this.doLayout();
|
||||||
this.panels[filter] = panel;
|
this.panels[filter] = panel;
|
||||||
|
|
||||||
panel.header.on('click', function(panel) {
|
panel.header.on('click', function(header) {
|
||||||
if (!deluge.config.sidebar_multiple_filters) {
|
if (!deluge.config.sidebar_multiple_filters) {
|
||||||
deluge.ui.update();
|
deluge.ui.update();
|
||||||
}
|
}
|
||||||
if (panel.list.getSelectionCount()) {
|
if (!panel.list.getSelectionCount()) {
|
||||||
panel.list.select(0);
|
panel.list.select(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user