mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Ability to save in mid-session! Simplest possible resolution to all
the difficult questions about when it's sensible to offer the option of saving to the slot we loaded from: _we never do_. The user must always explicitly specify a slot to save to. [originally from svn r5035] [this svn revision also touched putty-wishlist]
This commit is contained in:
parent
11655820ca
commit
340afa2733
5
config.c
5
config.c
@ -845,7 +845,11 @@ void setup_config_box(struct controlbox *b, struct sesslist *sesslist,
|
|||||||
"SSH", 's', I(PROT_SSH),
|
"SSH", 's', I(PROT_SSH),
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The Load/Save panel is available even in mid-session.
|
||||||
|
*/
|
||||||
s = ctrl_getset(b, "Session", "savedsessions",
|
s = ctrl_getset(b, "Session", "savedsessions",
|
||||||
"Load, save or delete a stored session");
|
"Load, save or delete a stored session");
|
||||||
ctrl_columns(s, 2, 75, 25);
|
ctrl_columns(s, 2, 75, 25);
|
||||||
@ -876,7 +880,6 @@ void setup_config_box(struct controlbox *b, struct sesslist *sesslist,
|
|||||||
sessionsaver_handler, P(ssd));
|
sessionsaver_handler, P(ssd));
|
||||||
ssd->delbutton->generic.column = 1;
|
ssd->delbutton->generic.column = 1;
|
||||||
ctrl_columns(s, 1, 100);
|
ctrl_columns(s, 1, 100);
|
||||||
}
|
|
||||||
|
|
||||||
s = ctrl_getset(b, "Session", "otheropts", NULL);
|
s = ctrl_getset(b, "Session", "otheropts", NULL);
|
||||||
c = ctrl_radiobuttons(s, "Close window on exit:", 'w', 4,
|
c = ctrl_radiobuttons(s, "Close window on exit:", 'w', 4,
|
||||||
|
@ -632,7 +632,7 @@ int do_reconfig(HWND hwnd)
|
|||||||
backup_cfg = cfg; /* structure copy */
|
backup_cfg = cfg; /* structure copy */
|
||||||
|
|
||||||
ctrlbox = ctrl_new_box();
|
ctrlbox = ctrl_new_box();
|
||||||
setup_config_box(ctrlbox, NULL, TRUE, cfg.protocol);
|
setup_config_box(ctrlbox, &sesslist, TRUE, cfg.protocol);
|
||||||
win_setup_config_box(ctrlbox, &dp.hwnd, (help_path != NULL), TRUE);
|
win_setup_config_box(ctrlbox, &dp.hwnd, (help_path != NULL), TRUE);
|
||||||
dp_init(&dp);
|
dp_init(&dp);
|
||||||
winctrl_init(&ctrls_base);
|
winctrl_init(&ctrls_base);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user