diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-11-30 19:43:19 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-11-30 19:43:19 +0100 |
commit | efcd01a21a9f77f59c4496ef96e5b5cbc1577464 (patch) | |
tree | 74702cf4e09889f51cd4c8df0242ea18703e3ba1 /src/menu.c | |
parent | 8c4548f2d08ab5180be09a976dafae467fc04612 (diff) |
menu: Set flip/rotate menu title based on --edit
If --edit is set, it is indeed "Edit in Place". Otherwise, it changes the
view, but not the image on the disk.
Diffstat (limited to 'src/menu.c')
-rw-r--r-- | src/menu.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -922,7 +922,12 @@ void feh_menu_init_main(void) feh_menu_add_entry(m, "Reload", NULL, CB_RELOAD, 0, NULL); feh_menu_add_entry(m, "Save Image", NULL, CB_SAVE_IMAGE, 0, NULL); feh_menu_add_entry(m, "Save List", NULL, CB_SAVE_FILELIST, 0, NULL); - feh_menu_add_entry(m, "Edit in Place", "EDIT", 0, 0, NULL); + if (opt.edit) { + feh_menu_add_entry(m, "Edit in Place", "EDIT", 0, 0, NULL); + } + else { + feh_menu_add_entry(m, "Change View", "EDIT", 0, 0, NULL); + } feh_menu_add_entry(m, "Background", "BACKGROUND", 0, 0, NULL); feh_menu_add_entry(m, NULL, NULL, 0, 0, NULL); feh_menu_add_entry(m, "Hide", NULL, CB_REMOVE, 0, NULL); |