Remove some of the grot I added to try and save/restore screen contents.
This shouldn't be done here, it should be done in the client as needed.
This commit is contained in:
parent
bc9eb1f2fe
commit
056985cc17
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15240
@ -188,15 +188,7 @@ dialog_menu(unsigned char *title, unsigned char *prompt, int height, int width,
|
||||
/* Shortcut to OK? */
|
||||
if (toupper(key) == okButton) {
|
||||
if (ditems && result && ditems[OK_BUTTON].fire) {
|
||||
WINDOW *w;
|
||||
int x;
|
||||
|
||||
w = dupwin(newscr);
|
||||
x = ditems[OK_BUTTON].fire(&ditems[OK_BUTTON]);
|
||||
touchwin(w);
|
||||
wrefresh(w);
|
||||
delwin(w);
|
||||
if (x == DITEM_FAILURE)
|
||||
if (ditems[OK_BUTTON].fire(&ditems[OK_BUTTON]) == DITEM_FAILURE)
|
||||
continue;
|
||||
else
|
||||
delwin(dialog);
|
||||
@ -210,15 +202,7 @@ dialog_menu(unsigned char *title, unsigned char *prompt, int height, int width,
|
||||
/* Shortcut to cancel? */
|
||||
else if (toupper(key) == cancelButton) {
|
||||
if (ditems && result && ditems[CANCEL_BUTTON].fire) {
|
||||
WINDOW *w;
|
||||
int x;
|
||||
|
||||
w = dupwin(newscr);
|
||||
x = ditems[CANCEL_BUTTON].fire(&ditems[CANCEL_BUTTON]);
|
||||
touchwin(w);
|
||||
wrefresh(w);
|
||||
delwin(w);
|
||||
if (x == DITEM_FAILURE)
|
||||
if (ditems[CANCEL_BUTTON].fire(&ditems[CANCEL_BUTTON]) == DITEM_FAILURE)
|
||||
continue;
|
||||
}
|
||||
delwin(dialog);
|
||||
@ -375,15 +359,7 @@ dialog_menu(unsigned char *title, unsigned char *prompt, int height, int width,
|
||||
case '\n':
|
||||
if (!button) {
|
||||
if (ditems && ditems[scroll + choice].fire) {
|
||||
WINDOW *w;
|
||||
int x;
|
||||
|
||||
w = dupwin(newscr);
|
||||
x = ditems[scroll + choice].fire(&ditems[scroll + choice]);
|
||||
touchwin(w);
|
||||
wrefresh(w);
|
||||
delwin(w);
|
||||
if (x == DITEM_FAILURE)
|
||||
if (ditems[scroll + choice].fire(&ditems[scroll + choice]) == DITEM_FAILURE)
|
||||
continue;
|
||||
}
|
||||
else if (result)
|
||||
|
Loading…
Reference in New Issue
Block a user