aboutsummaryrefslogtreecommitdiff
path: root/wmenu.c
diff options
context:
space:
mode:
authoradnano <me@adnano.co>2024-05-04 21:44:59 -0400
committeradnano <me@adnano.co>2024-05-04 21:44:59 -0400
commit15d7c7bcc29e66f174c4de2420d371a9737ac6e4 (patch)
tree3be3d17ffb062e95f92d90dbdd7fb74fa6e4f538 /wmenu.c
parent963a677631f00b9b259e101a5e3dad85da6ccbf2 (diff)
downloadwmenu-15d7c7bcc29e66f174c4de2420d371a9737ac6e4.tar.gz
Revert "Remove wmenu -P flag"
This reverts commit c05ab7520b452ee3b8bd974a18511dc370cbeabe.
Diffstat (limited to 'wmenu.c')
-rw-r--r--wmenu.c4
1 files changed, 3 insertions, 1 deletions
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;