#1
|
|||
|
|||
[Feature Request] Add the "Packagizer" Toggling Button to the Toolbar
Hi, most of the times I download to a main folder, but there is some exceptional cases, when I need to use one of the "packagizer's" rules, which puts a determined group of files into a folder and gives it a related name. For that kind of cases, it would be great if there is the chance of being able to enable/disable the "packagizer" feature, in a more direct way. Likewise it actually is for the "JD Shutdown" or the "Events Scripter" extensions.
Thanks. Last edited by ElCho; 19.05.2020 at 04:16. |
#2
|
||||
|
||||
Please use Eventscripter and create custom script for custom button, see https://board.jdownloader.org/showthread.php?t=70525
Ask in thread for help or maybe there is already an existing script for this
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
Code:
// Toggle packagizer extension // Trigger: Toolbar button pressed // Customize main toolbar > add new "Eventscripter Trigger" button > Rename it to "Toggle Packagizer Extension" (without quotes, case-sensitive) > Change Icon (Optional) if (name == "Toggle Packagizer Extension") { var interfaceName = "org.jdownloader.controlling.packagizer.PackagizerSettings"; var key = "PackagizerEnabled"; var currentState = callAPI("config", "get", interfaceName, null, key); var message = currentState ? "Pacagizer was disabled" : "Packagzier was enabled"; callAPI("config", "set", interfaceName, null, key, !currentState); alert(message); } |
#4
|
||||
|
||||
Nice!
-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#5
|
||||
|
||||
@mgpai: Thank you very much!
__________________
JD-Dev & Server-Admin |
#6
|
||||
|
||||
@mgpai very thoughtful!
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#7
|
|||
|
|||
I already tried it and it works nicely.
Although not exactly the same, I bet this workaround is the best next thing to an "officially" dedicated button. Thanks a bunch @mgpai. |
#8
|
||||
|
||||
@Elcho: Not exactly the same? Our *official* button would do the exact same thing or did you expect different behaviour?
__________________
JD-Dev & Server-Admin |
#9
|
|||
|
|||
Well, despite the task it triggers ends being exactly the same, the script related button lacks an important functional part which is present in the "official" button, namely, a checkbox.
Without it, there isn't a way of making sure its current condition; besides, one has to close an "enabled/disabled" reminder message each time after using it. Not really a big deal, but that's why I say it is the next best thing. |
#10
|
||||
|
||||
You are right about the missing checkbox!
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|