Skip to content

Commit

Permalink
* mui/UpdateComponentList.c: disable the "download in browser" contex…
Browse files Browse the repository at this point in the history
…t menu item if openurl.library is not available to be consistent with the "download in browser" button. This refs #632.
  • Loading branch information
tboeckel committed Nov 9, 2016
1 parent d7db067 commit d9e5b3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/YAM_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -5755,7 +5755,7 @@ BOOL GotoURL(const char *url, const BOOL newWindow)
// let the user decide himself if he wants to see
// it popping up in a new window or not (via OpenURL
// prefs)
D(DBF_UTIL, "trying openurl.library to open URL '%s'", url);
D(DBF_UTIL, "trying openurl.library to open URL '%s'", url);
wentToURL = URL_Open((STRPTR)url, URL_NewWindow, newWindow,
TAG_DONE);
}
Expand Down
2 changes: 1 addition & 1 deletion src/mui/UpdateComponentList.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ OVERLOAD(MUIM_ContextMenuBuild)
data->contextMenu = MenustripObject,
Child, MenuObjectT(data->menuTitle),
Child, MenuitemObject, MUIA_Menuitem_Title, tr(MSG_UPD_NOTIFICATION_DOWNLOAD), MUIA_Menuitem_CopyStrings, FALSE, MUIA_UserData, UMEN_DOWNLOAD, End,
Child, MenuitemObject, MUIA_Menuitem_Title, tr(MSG_UPD_NOTIFICATION_DOWNLOAD_WITH_BROWSER), MUIA_Menuitem_CopyStrings, FALSE, MUIA_UserData, UMEN_DOWNLOAD_WITH_BROWSER, End,
Child, MenuitemObject, MUIA_Menuitem_Title, tr(MSG_UPD_NOTIFICATION_DOWNLOAD_WITH_BROWSER), MUIA_Menuitem_CopyStrings, FALSE, MUIA_UserData, UMEN_DOWNLOAD_WITH_BROWSER, MUIA_Menuitem_Enabled, GotoURLPossible(), End,
End,
End;
}
Expand Down

0 comments on commit d9e5b3a

Please sign in to comment.