diff options
author | adnano <me@adnano.co> | 2024-05-04 21:44:59 -0400 |
---|---|---|
committer | adnano <me@adnano.co> | 2024-05-04 21:44:59 -0400 |
commit | 15d7c7bcc29e66f174c4de2420d371a9737ac6e4 (patch) | |
tree | 3be3d17ffb062e95f92d90dbdd7fb74fa6e4f538 /wmenu.c | |
parent | 963a677631f00b9b259e101a5e3dad85da6ccbf2 (diff) | |
download | wmenu-15d7c7bcc29e66f174c4de2420d371a9737ac6e4.tar.gz |
Revert "Remove wmenu -P flag"
This reverts commit c05ab7520b452ee3b8bd974a18511dc370cbeabe.
Diffstat (limited to 'wmenu.c')
-rw-r--r-- | wmenu.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |