summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2013-09-10 15:37:59 +0200
committerSven Eden <yamakuzure@gmx.net>2013-09-10 15:37:59 +0200
commit9b8e19212eb77e19df82315eea333de340f69a9a (patch)
tree14a187938a45c24f95e276624a9c33069331c182 /ufed-curses-checklist.c
parentAdded handling for F10 to siwtch description display between original and alt... (diff)
downloadufed-9b8e19212eb77e19df82315eea333de340f69a9a.tar.gz
ufed-9b8e19212eb77e19df82315eea333de340f69a9a.tar.bz2
ufed-9b8e19212eb77e19df82315eea333de340f69a9a.zip
F10 now really toggles the description between original and alternative
Diffstat (limited to 'ufed-curses-checklist.c')
-rw-r--r--ufed-curses-checklist.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ufed-curses-checklist.c b/ufed-curses-checklist.c
index f83e9ed..f51e07b 100644
--- a/ufed-curses-checklist.c
+++ b/ufed-curses-checklist.c
@@ -295,9 +295,14 @@ static int drawflag(sFlag* flag, bool highlight)
memset(desc, 0, maxDescWidth * sizeof(char));
if (flag->desc[idx].pkg) {
if (e_order == eOrder_left)
- sprintf(desc, "(%s) %s", flag->desc[idx].pkg, flag->desc[idx].desc);
+ sprintf(desc, "(%s) %s", flag->desc[idx].pkg, e_desc == eDesc_ori
+ ? flag->desc[idx].desc
+ : flag->desc[idx].desc_alt);
else
- sprintf(desc, "%s (%s)", flag->desc[idx].desc, flag->desc[idx].pkg);
+ sprintf(desc, "%s (%s)", e_desc == eDesc_ori
+ ? flag->desc[idx].desc
+ : flag->desc[idx].desc_alt,
+ flag->desc[idx].pkg);
}
else
sprintf(desc, "%s", flag->desc[idx].desc);