mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-23 04:27:25 +08:00
fix(Views/Player): not closing when the selected player left (#3039)
This commit is contained in:
parent
d59f8d85c1
commit
1bf49fab3d
@ -37,7 +37,8 @@ namespace big
|
||||
{
|
||||
name_appendage += std::format(" [{}]", "TRUST"_T);
|
||||
}
|
||||
strcpy(player_tab.name, std::format("{} ({}){}", current_player->get_name(), current_player->id(), name_appendage).c_str());
|
||||
strcpy(player_tab.name,
|
||||
std::format("{} ({}){}", current_player->get_name(), current_player->id(), name_appendage).c_str());
|
||||
|
||||
view::player_info();
|
||||
ImGui::SameLine();
|
||||
@ -51,5 +52,7 @@ namespace big
|
||||
ImGui::SameLine();
|
||||
view::player_vehicle();
|
||||
}
|
||||
else
|
||||
g_gui_service->set_selected(tabs::NONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user