diff options
author | Sven Eden <yamakuzure@gmx.net> | 2013-09-10 15:37:59 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2013-09-10 15:37:59 +0200 |
commit | 9b8e19212eb77e19df82315eea333de340f69a9a (patch) | |
tree | 14a187938a45c24f95e276624a9c33069331c182 /ufed-curses-checklist.c | |
parent | Added handling for F10 to siwtch description display between original and alt... (diff) | |
download | ufed-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.c | 9 |
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); |