mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
rename deluge-execute.js to execute.js
This commit is contained in:
parent
2d10f88714
commit
365d21ed04
1 changed files with 19 additions and 1 deletions
|
@ -71,5 +71,23 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Deluge.Preferences.addPage(new ExecutePanel());
|
|
||||||
|
ExecutePlugin = Ext.extend(Deluge.Plugin, {
|
||||||
|
constructor: function(config) {
|
||||||
|
config = Ext.apply({
|
||||||
|
name: "Execute"
|
||||||
|
}, config);
|
||||||
|
ExecutePlugin.superclass.constructor.call(this, config);
|
||||||
|
},
|
||||||
|
|
||||||
|
onDisable: function() {
|
||||||
|
Deluge.Preferences.removePage(this.prefsPage);
|
||||||
|
},
|
||||||
|
|
||||||
|
onEnable: function() {
|
||||||
|
this.prefsPage = new ExecutePanel();
|
||||||
|
this.prefsPage = Deluge.Preferences.addPage(this.prefsPage);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
new ExecutePlugin();
|
||||||
})();
|
})();
|
Loading…
Add table
Add a link
Reference in a new issue