PromoteTrayItems() public method

public PromoteTrayItems ( string exeToPromote ) : void
exeToPromote string
return void
    /**
     * Promotes all tray items created by the specified EXE from the toolbar customization area
     * to the toolbar itself if the user has not explicitly specified that they should never be
     * shown in the toolbar.
     *
     * The function accepts the name of the EXE as argument rather than attempt to determine it itself
     * simply because that was easier to determine Node-side.
     *
     * @param {string} The name of the EXE for which to promote tray items.
     *
     * @return {null}
     */
    public async Task<object> Invoke(string exeToPromote)
    {
        var trayFixer = new Squirrel.TrayStateChanger();
        trayFixer.PromoteTrayItems(exeToPromote);

        return null;
    }
Example #2
0
    /**
     * Promotes all tray items created by the specified EXE from the toolbar customization area
     * to the toolbar itself if the user has not explicitly specified that they should never be
     * shown in the toolbar.
     *
     * The function accepts the name of the EXE as argument rather than attempt to determine it itself
     * simply because that was easier to determine Node-side.
     *
     * @param {string} The name of the EXE for which to promote tray items.
     *
     * @return {null}
     */
    public async Task <object> Invoke(string exeToPromote)
    {
        var trayFixer = new Squirrel.TrayStateChanger();

        trayFixer.PromoteTrayItems(exeToPromote);

        return(null);
    }