kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #18297
Re: [PATCH] Add online documenation URL to the menu
2015-05-18 0:44 GMT+02:00 Melroy van den Berg <webmaster1989@xxxxxxxxx>:
> Hi devs,
>
> I created a patch which opens the online documentation page in the
> web-browser, only when the local help file could not be found.
>
> This way the user don't get the pop-up message: 'PDF could not be found'.
> Instead they can read the latest successfully build documentation online :).
>
> Off-topic:
>>
>> It would be nice if online documentation becomes the default.
>> This way the users always read the latest version of the documentation.
>
>
> See attachment for the patch.
Why do you do the:
if( !helpFile )
{
... helpURL = ...
}
else
{
GetAssociatedDocument( this, helpFile );
if(!helpURL.IsEmpty())
{
GetAssociatedDocument( this, helpURL );
}
Why not just
if( !helpFile )
{
...
helpFile = ...
}
GetAssociatedDocument( this, helpFile );
By that it will just set the helpFile if the helpfile was not found.
> Thanks in advance!
>
> Kind regards,
> Melroy van den Berg
Follow ups
References