From 15d7c7bcc29e66f174c4de2420d371a9737ac6e4 Mon Sep 17 00:00:00 2001 From: adnano Date: Sat, 4 May 2024 21:44:59 -0400 Subject: Revert "Remove wmenu -P flag" This reverts commit c05ab7520b452ee3b8bd974a18511dc370cbeabe. --- wmenu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wmenu.c') diff --git a/wmenu.c b/wmenu.c index e7d37d9..0a3d0b0 100644 --- a/wmenu.c +++ b/wmenu.c @@ -19,7 +19,9 @@ static void read_items(struct menu *menu) { int main(int argc, char *argv[]) { struct menu *menu = menu_create(); menu_getopts(menu, argc, argv); - read_items(menu); + if (!menu->passwd) { + read_items(menu); + } int status = menu_run(menu); menu_destroy(menu); return status; -- cgit v1.2.3