Enable "Set Rel" for directory bookmarks only with portable installation

add a global variable to store if we are in a portable installation
This commit is contained in:
Thomas Bernard
2019-02-04 23:58:26 +01:00
parent 02f9d68f8e
commit e7bb7c8684
3 changed files with 14 additions and 2 deletions

View File

@@ -1221,7 +1221,8 @@ static void Display_bookmark(T_Dropdown_button * Button, int bookmark_number)
Window_dropdown_clear_items(Button);
Window_dropdown_add_item(Button,0,"Set");
#if !(defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__) || defined(__amigaos__))
Window_dropdown_add_item(Button,3,"Set Rel");
if (Portable_Installation_Detected)
Window_dropdown_add_item(Button,3,"Set Rel");
#endif
if (Config.Bookmark_directory[bookmark_number])
{