mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-17 11:00:59 -05:00
Lowercase version of BackendVtable's displayname.
The current 'displayname' field is designed for presenting in the config UI, so it starts with a capital letter even when it's not a proper noun. If I want to name the backend in the middle of a sentence, I'll need a version that starts with lowercase where appropriate. The old field is renamed displayname_tc, to avoid ambiguity.
This commit is contained in:
4
config.c
4
config.c
@ -312,7 +312,7 @@ static void config_protocols_handler(union control *ctrl, dlgparam *dlg,
|
||||
for (size_t i = n_ui_backends;
|
||||
i < PROTOCOL_LIMIT && backends[i]; i++) {
|
||||
dlg_listbox_addwithid(ctrl, dlg,
|
||||
backends[i]->displayname,
|
||||
backends[i]->displayname_tc,
|
||||
backends[i]->protocol);
|
||||
if (backends[i]->protocol == curproto)
|
||||
curentry = i - n_ui_backends;
|
||||
@ -1793,7 +1793,7 @@ void setup_config_box(struct controlbox *b, bool midsession,
|
||||
for (size_t i = 0; i < n_ui_backends; i++) {
|
||||
assert(backends[i]);
|
||||
c->radio.buttons[c->radio.nbuttons] =
|
||||
dupstr(backends[i]->displayname);
|
||||
dupstr(backends[i]->displayname_tc);
|
||||
c->radio.shortcuts[c->radio.nbuttons] =
|
||||
(backends[i]->protocol == PROT_SSH ? 's' :
|
||||
backends[i]->protocol == PROT_SERIAL ? 'r' :
|
||||
|
Reference in New Issue
Block a user