[ Transmission4 ] A Fast, Easy and Free Bittorrent Client

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
User avatar
samius
Posts: 8
Joined: 14 Apr 2024, 21:46
Russia

Re: [ Transmission4 ] A Fast, Easy and Free Bittorrent Client

Post by samius »

Ok... maybe the downloaded archive was broken...
I have one more question... How can I first stop transmission daemon, then save the settings.json file, and then again start the daemon with new settings?
F4-424 Pro TOS 6.0.229
User avatar
outkastm
Posts: 1197
Joined: 29 Dec 2020, 23:52

Re: [ Transmission4 ] A Fast, Easy and Free Bittorrent Client

Post by outkastm »

One way is to use the application control menu
Image
User avatar
samius
Posts: 8
Joined: 14 Apr 2024, 21:46
Russia

Re: [ Transmission4 ] A Fast, Easy and Free Bittorrent Client

Post by samius »

I about this function in ui.js:
Is it possible to add a plugin stop before executing it?

Code: Select all

function applyConfig1()
{
    $(".adv_config1").attr("disabled",true);    
    waitingDialog({title: "Please wait ...", message: "Saving config file"});
    $.post(
        AX_HANDLER, 
        { action: "setConfig1", config: $("#adv_config_text1").val() },
        function(data)
        {
            if ( data.error )
            {
                $("#errorDialog").html(data.message).dialog("open");
            }
            else
            {
                $("#adv_config_text1").val(data.config);
            }
            $(".adv_config1").attr("disabled",false);
            updateStatus();
        },
        'json'
    );
    $("#loadingDialog").ajaxStop(closeWaitingDialog);
}
F4-424 Pro TOS 6.0.229
User avatar
outkastm
Posts: 1197
Joined: 29 Dec 2020, 23:52

Re: [ Transmission4 ] A Fast, Easy and Free Bittorrent Client

Post by outkastm »

No plans for this, because transmission is one of the very few (if not the only) apps that need to be stopped before editing the config.
The apps are restarted after pressing the apply button.
Post Reply

Return to “Developer Discussion Room”