mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-19 19:44:28 +08:00
@david suggestion on Notification not steel focus
This commit is contained in:
parent
ffab47dac7
commit
ef420c9b72
@ -202,8 +202,14 @@ void NotificationManager::PopNotification::render(GLCanvas3D& canvas, float init
|
|||||||
if (m_id == 0)
|
if (m_id == 0)
|
||||||
m_id = m_id_provider.allocate_id();
|
m_id = m_id_provider.allocate_id();
|
||||||
std::string name = "!!Ntfctn" + std::to_string(m_id);
|
std::string name = "!!Ntfctn" + std::to_string(m_id);
|
||||||
|
|
||||||
|
int flags = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar |
|
||||||
|
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize |
|
||||||
|
ImGuiWindowFlags_NoScrollbar |
|
||||||
|
ImGuiWindowFlags_NoScrollWithMouse |
|
||||||
|
ImGuiWindowFlags_NoFocusOnAppearing;
|
||||||
|
|
||||||
if (imgui.begin(name, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse)) {
|
if (imgui.begin(name, flags)) {
|
||||||
ImVec2 win_size = ImGui::GetWindowSize();
|
ImVec2 win_size = ImGui::GetWindowSize();
|
||||||
|
|
||||||
render_left_sign(imgui);
|
render_left_sign(imgui);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user