Skip to content
Snippets Groups Projects
Commit 16525f87 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use the new uifc_t.restore() method when decrementing the save_num

This is the proper way to manually-restore the most recently saved
window (via the WIN_SAV mode flag to the list() method).

I wanted something that was backward comaptible with earlier builds
of SBBS, so just doing a magic thing when decrementing the save_num
rather than adding a new method seemed the seamless way to do it.
parent 1c85a913
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -504,7 +504,10 @@ static JSBool js_set(JSContext *cx, JSObject *obj, jsid id, JSBool strict, jsval
uifc->mode=i;
break;
case PROP_SAVNUM:
uifc->savnum=i;
if(i == uifc->savnum - 1 && uifc->restore != NULL)
uifc->restore();
else
uifc->savnum=i;
break;
case PROP_SCRN_LEN:
uifc->scrn_len=i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment