[feat] show shield icon when SRTP is enabled

This commit is contained in:
dijunkun
2025-09-30 17:26:42 +08:00
parent 6565816c0e
commit 15bf8ef8c0
4 changed files with 61 additions and 62 deletions

View File

@@ -86,8 +86,11 @@ int Render::StreamWindow() {
}
ImGui::SetWindowFontScale(0.6f);
if (ImGui::BeginTabItem(props->remote_id_.c_str(),
&props->tab_opened_)) {
std::string tab_label =
enable_srtp_
? std::string(ICON_FA_SHIELD_HALVED) + " " + props->remote_id_
: props->remote_id_;
if (ImGui::BeginTabItem(tab_label.c_str(), &props->tab_opened_)) {
props->tab_selected_ = true;
ImGui::SetWindowFontScale(1.0f);