[turbine,studio] Fix some popup window resize weirdness, cleanup some function names
All checks were successful
Build / build (push) Successful in 1m17s
All checks were successful
Build / build (push) Successful in 1m17s
This commit is contained in:
@@ -43,7 +43,7 @@ static ox::Error runApp(
|
||||
oxLogError(turbine::setWindowIcon(*ctx, WindowIcons()));
|
||||
turbine::setWindowTitle(*ctx, keelCtx(*ctx).appName);
|
||||
turbine::setKeyEventHandler(*ctx, keyEventHandler);
|
||||
turbine::setRefreshWithin(*ctx, 0);
|
||||
turbine::requireRefreshWithin(*ctx, 0);
|
||||
StudioUI ui(*ctx, projectDataDir);
|
||||
StudioUIDrawer drawer(ui);
|
||||
turbine::gl::addDrawer(*ctx, &drawer);
|
||||
|
@@ -2,6 +2,8 @@
|
||||
* Copyright 2016 - 2025 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||
*/
|
||||
|
||||
#include <turbine/gfx.hpp>
|
||||
|
||||
#include <studio/imguiutil.hpp>
|
||||
|
||||
#include "deleteconfirmation.hpp"
|
||||
@@ -43,6 +45,9 @@ void DeleteConfirmation::draw(Context &ctx) noexcept {
|
||||
ImGui::OpenPopup(title().c_str());
|
||||
m_stage = Stage::Open;
|
||||
m_open = true;
|
||||
// require extended refresh in case new contents require resize
|
||||
// this can take around a second
|
||||
turbine::requireRefreshFor(ctx.tctx, 1000);
|
||||
[[fallthrough]];
|
||||
case Stage::Open:
|
||||
drawWindow(ctx.tctx, m_open, [this] {
|
||||
|
@@ -347,7 +347,7 @@ void StudioUI::drawTabs() noexcept {
|
||||
pc->activeTabItemName = m_activeEditor->itemPath();
|
||||
}
|
||||
});
|
||||
turbine::setRefreshWithin(m_tctx, 0);
|
||||
turbine::requireRefreshWithin(m_tctx, 0);
|
||||
} else [[likely]] {
|
||||
if (m_activeEditorUpdatePending == e.get()) [[unlikely]] {
|
||||
m_activeEditorUpdatePending = nullptr;
|
||||
|
Reference in New Issue
Block a user