mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-12-17 04:26:47 +08:00
[fix] fix menu BeginPopup & EndPopup pairing
This commit is contained in:
@@ -131,7 +131,7 @@ int Render::TitleBar(bool main_window) {
|
|||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::EndMenu();
|
ImGui::EndPopup();
|
||||||
} else {
|
} else {
|
||||||
show_new_version_icon_in_menu_ = true;
|
show_new_version_icon_in_menu_ = true;
|
||||||
}
|
}
|
||||||
@@ -152,7 +152,9 @@ int Render::TitleBar(bool main_window) {
|
|||||||
// render for 1 second
|
// render for 1 second
|
||||||
if (show_new_version_icon_) {
|
if (show_new_version_icon_) {
|
||||||
ImGui::SetWindowFontScale(0.6f);
|
ImGui::SetWindowFontScale(0.6f);
|
||||||
ImGui::SetCursorPos(ImVec2(bar_pos_x + 10, bar_pos_y - 17));
|
ImGui::SetCursorPos(
|
||||||
|
ImVec2(bar_pos_x + title_bar_button_width * 0.15f,
|
||||||
|
bar_pos_y - title_bar_button_width * 0.325f));
|
||||||
ImGui::Text(ICON_FA_TRIANGLE_EXCLAMATION);
|
ImGui::Text(ICON_FA_TRIANGLE_EXCLAMATION);
|
||||||
ImGui::SetWindowFontScale(1.0f);
|
ImGui::SetWindowFontScale(1.0f);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user