summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-11-30 19:43:19 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-11-30 19:43:19 +0100
commitefcd01a21a9f77f59c4496ef96e5b5cbc1577464 (patch)
tree74702cf4e09889f51cd4c8df0242ea18703e3ba1 /src
parent8c4548f2d08ab5180be09a976dafae467fc04612 (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')
-rw-r--r--src/menu.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/menu.c b/src/menu.c
index 75fd1d9..b1deedb 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -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);