mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 05:53:12 -07:00
Do not show Private Keys in Switch GUI
This commit is contained in:
parent
5e3a19fccc
commit
3a7ac73c9a
1 changed files with 4 additions and 15 deletions
|
@ -447,24 +447,13 @@ bool MainApplication::BuildConfigurationMenu(brls::List *ls, Host *host)
|
||||||
ls->addView(host_name);
|
ls->addView(host_name);
|
||||||
|
|
||||||
std::string host_addr_string = settings->GetHostAddr(host);
|
std::string host_addr_string = settings->GetHostAddr(host);
|
||||||
brls::ListItem *host_addr = new brls::ListItem("PS4 Address");
|
brls::ListItem *host_addr = new brls::ListItem("PS Address");
|
||||||
host_addr->setValue(host_addr_string.c_str());
|
host_addr->setValue(host_addr_string.c_str());
|
||||||
ls->addView(host_addr);
|
ls->addView(host_addr);
|
||||||
|
|
||||||
std::string host_rp_regist_key_string = settings->GetHostRPRegistKey(host);
|
brls::ListItem *host_regist_state_item = new brls::ListItem("Register Status");
|
||||||
brls::ListItem *host_rp_regist_key = new brls::ListItem("RP Register Key");
|
host_regist_state_item->setValue(!settings->GetHostRPKey(host).empty() ? "registered" : "unregistered");
|
||||||
host_rp_regist_key->setValue(host_rp_regist_key_string.c_str());
|
ls->addView(host_regist_state_item);
|
||||||
ls->addView(host_rp_regist_key);
|
|
||||||
|
|
||||||
std::string host_rp_key_string = settings->GetHostRPKey(host);
|
|
||||||
brls::ListItem *host_rp_key = new brls::ListItem("RP Key");
|
|
||||||
host_rp_key->setValue(host_rp_key_string.c_str());
|
|
||||||
ls->addView(host_rp_key);
|
|
||||||
|
|
||||||
std::string host_rp_key_type_string = std::to_string(settings->GetHostRPKeyType(host));
|
|
||||||
brls::ListItem *host_rp_key_type = new brls::ListItem("RP Key type");
|
|
||||||
host_rp_key_type->setValue(host_rp_key_type_string.c_str());
|
|
||||||
ls->addView(host_rp_key_type);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue