From 87c03c0d984c3ec63caba2e513a062d1928fcda8 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 30 Jan 2022 02:45:07 -0600 Subject: [PATCH] [nostalgia/studio] Fix closing of file dialog not to change cursor --- src/nostalgia/studio/filedialogmanager.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/nostalgia/studio/filedialogmanager.cpp b/src/nostalgia/studio/filedialogmanager.cpp index dc974c57..8a7934dd 100644 --- a/src/nostalgia/studio/filedialogmanager.cpp +++ b/src/nostalgia/studio/filedialogmanager.cpp @@ -2,8 +2,6 @@ * Copyright 2016 - 2022 Gary Talent (gary@drinkingtea.net). All rights reserved. */ -#include - #include #include "filedialogmanager.hpp" @@ -15,8 +13,6 @@ studio::TaskState FileDialogManager::update(core::Context *ctx) noexcept { case UpdateProjectPathState::EnableSystemCursor: { // switch to system cursor in this update and open file dialog in the next // the cursor state has to be set before the ImGui frame starts - auto &io = ImGui::GetIO(); - io.MouseDrawCursor = false; m_state = UpdateProjectPathState::RunFileDialog; break; } @@ -29,8 +25,6 @@ studio::TaskState FileDialogManager::update(core::Context *ctx) noexcept { err = pathChosen.emitCheckError(path); oxAssert(err, "Path chosen response failed"); } - auto &io = ImGui::GetIO(); - io.MouseDrawCursor = true; m_state = UpdateProjectPathState::None; return nostalgia::studio::TaskState::Done; }