add auto dirty (save toxfile) + minor stuff

This commit is contained in:
2023-07-29 20:39:31 +02:00
parent 93e5bb867b
commit d5e2dd2e1f
6 changed files with 101 additions and 6 deletions

View File

@ -88,14 +88,16 @@ void ChatGui4::render(void) {
if (ri.name) {
ImGui::InputText("name to join with", &self_name);
} else {
ImGui::TextUnformatted("");
//ImGui::TextUnformatted("");
ImGui::Dummy({0, TEXT_BASE_HEIGHT});
}
static std::string password;
if (ri.password) {
ImGui::InputText("password to join with", &password);
} else {
ImGui::TextUnformatted("");
////ImGui::TextUnformatted("");
ImGui::Dummy({0, TEXT_BASE_HEIGHT});
}
if (ImGui::Button("Accept")) {
@ -515,12 +517,11 @@ bool ChatGui4::renderContactListContactBig(const Contact3 c) {
ImGui::SameLine();
ImGui::BeginGroup();
{
ImGui::Text("%s", (_cr.all_of<Contact::Components::Name>(c) ? _cr.get<Contact::Components::Name>(c).name.c_str() : "<unk>"));
if (request_incoming) {
ImGui::TextUnformatted("Incoming request/invite");
} else if (request_outgoing) {
ImGui::TextUnformatted("Outgoing request/invite");
} else {
ImGui::Text("%s", (_cr.all_of<Contact::Components::Name>(c) ? _cr.get<Contact::Components::Name>(c).name.c_str() : "<unk>"));
}
//ImGui::Text("status message...");
//ImGui::TextDisabled("hi");