Skip to content

Commit

Permalink
fix unsaved dialog position
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Nov 30, 2024
1 parent 9cced08 commit 569fe60
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/backend/MainBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void MainBackend::m_MainLoop() {
size = viewport->WorkSize;
}

MainFrontend::Instance()->Display(m_CurrentFrame, ImVec2(0,0), size);
MainFrontend::Instance()->Display(m_CurrentFrame, pos, size);

ScriptingEngine::Instance()->FinishIfRequired();

Expand Down
7 changes: 4 additions & 3 deletions src/frontend/MainFrontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void MainFrontend::Display(const uint32_t& vCurrentFrame, const ImVec2& vPos, co
ProjectFile::Instance()->SetProjectChange();
}

DrawDialogsAndPopups(vCurrentFrame, ImRect(m_DisplayPos, m_DisplaySize), context_ptr, {});
DrawDialogsAndPopups(vCurrentFrame, ImRect(ImVec2(0,0), m_DisplaySize), context_ptr, {});

ImGuiThemeHelper::Instance()->Draw();
LayoutManager::Instance()->InitAfterFirstDisplay(io.DisplaySize);
Expand Down Expand Up @@ -732,8 +732,8 @@ void MainFrontend::IWantToCloseTheApp() {
///////////////////////////////////////////////////////

void MainFrontend::JustDropFiles(int count, const char** paths) {
assert(0);

EZ_TOOLS_DEBUG_BREAK;
/*
std::map<std::string, std::string> dicoFont;
std::string prj;
Expand Down Expand Up @@ -762,6 +762,7 @@ void MainFrontend::JustDropFiles(int count, const char** paths) {
if (!prj.empty()) {
MainBackend::Instance()->NeedToLoadProject(prj);
}
*/
}

//////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions src/headers/LogToGraphBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define LogToGraph_Prefix "LogToGraph"
#define LogToGraph_BuildNumber 1053
#define LogToGraph_BuildNumber 1056
#define LogToGraph_MinorNumber 2
#define LogToGraph_MajorNumber 0
#define LogToGraph_BuildId "0.2.1053"
#define LogToGraph_BuildId "0.2.1056"

0 comments on commit 569fe60

Please sign in to comment.