FIX: display '?' on a notification(STUDIO-2199)

Change-Id: Id20f287aa1e26571cb416c5f237257418589cf29
This commit is contained in:
liz.li 2023-04-06 14:24:09 +08:00 committed by Lane.Wei
parent a6be285843
commit 688640e808
1 changed files with 8 additions and 7 deletions

View File

@ -1112,13 +1112,14 @@ void NotificationManager::PrintHostUploadNotification::render_bar(ImGuiWrapper&
} }
void NotificationManager::PrintHostUploadNotification::render_left_sign(ImGuiWrapper& imgui) void NotificationManager::PrintHostUploadNotification::render_left_sign(ImGuiWrapper& imgui)
{ {
if (m_uj_state == UploadJobState::PB_ERROR) { // BBS: do not render left button
std::string text; //if (m_uj_state == UploadJobState::PB_ERROR) {
text = ImGui::ErrorMarker; // std::string text;
ImGui::SetCursorPosX(m_line_height / 3); // text = ImGui::ErrorMarker;
ImGui::SetCursorPosY(m_window_height / 2 - m_line_height); // ImGui::SetCursorPosX(m_line_height / 3);
imgui.text(text.c_str()); // ImGui::SetCursorPosY(m_window_height / 2 - m_line_height);
} // imgui.text(text.c_str());
//}
} }
void NotificationManager::PrintHostUploadNotification::render_cancel_button(ImGuiWrapper& imgui, const float win_size_x, const float win_size_y, const float win_pos_x, const float win_pos_y) void NotificationManager::PrintHostUploadNotification::render_cancel_button(ImGuiWrapper& imgui, const float win_size_x, const float win_size_y, const float win_pos_x, const float win_pos_y)
{ {