From 678464d24c9c5b689788c0ec17854611f127f863 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sat, 28 Sep 2024 20:47:33 -0500 Subject: Compile against release. --- src/bookmouse.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/bookmouse.cpp') diff --git a/src/bookmouse.cpp b/src/bookmouse.cpp index d367af1..d6c5490 100644 --- a/src/bookmouse.cpp +++ b/src/bookmouse.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -12,7 +13,7 @@ namespace bookmouse { -using fud::FudStatus; +using fud::assertFail; constexpr const char* OpenDialogHandle = "Open File"; @@ -101,15 +102,9 @@ void Bookmouse::updateState() ImGui::SetNextWindowSize(m_imgui.getIO().DisplaySize); auto stateResult = ImBegin( "My First Tool", - &m_running, // Is this right? + &m_running, ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_MenuBar); - IM_ASSERT(stateResult); - - // m_imgui.getIO().AddKeyEvent() - - // if (ImGui::IsKeyPressed(ImGuiKey_O) && m_imgui.getIO().KeyCtrl && !m_openDialog) { - // m_openDialog = true; - // } + fudAssert(stateResult); if (ImMenuBar menuBar{}) { IM_ASSERT(menuBar); @@ -172,6 +167,7 @@ void Bookmouse::openDialog() if (m_fileDialog == nullptr) { m_fileDialog = std::make_unique(m_directoryName, m_timeFormat); if (!m_fileDialog->valid()) { + spdlog::error("WHAT {}", m_directoryName.c_str()); m_openDialog = false; ImGui::CloseCurrentPopup(); } -- cgit v1.2.3