From 061e2fb9a6836b8ba759eb125f049a7e6eb4b1d9 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Wed, 12 Jun 1996 14:02:13 +0000 Subject: Fix a truly stupid bug which broke the package installation menu for everything _but_ the multi-user case now (it was the opposite before :-). That means adding packages with the 2.2-960511-SNAP boot floppy is busted. Feh. --- usr.sbin/sade/dmenu.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'usr.sbin/sade/dmenu.c') diff --git a/usr.sbin/sade/dmenu.c b/usr.sbin/sade/dmenu.c index 7dbbd15e5dc6..ee2b2e57adec 100644 --- a/usr.sbin/sade/dmenu.c +++ b/usr.sbin/sade/dmenu.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated for what's essentially a complete rewrite. * - * $Id: dmenu.c,v 1.18 1996/04/25 17:31:17 jkh Exp $ + * $Id: dmenu.c,v 1.19 1996/04/28 00:37:31 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -92,6 +92,16 @@ dmenuSetVariable(dialogMenuItem *tmp) return DITEM_SUCCESS; } +int +dmenuToggleVariable(dialogMenuItem *tmp) +{ + if (!variable_get((char *)tmp->data)) + variable_set((char *)tmp->data); + else + variable_unset((char *)tmp->data); + return DITEM_SUCCESS; +} + int dmenuSetFlag(dialogMenuItem *tmp) { -- cgit v1.2.3