[studio] Fix Studio to clear editor pointers when opening a new project
All checks were successful
Build / build (push) Successful in 1m20s
All checks were successful
Build / build (push) Successful in 1m20s
This commit is contained in:
@ -5,6 +5,7 @@
|
|||||||
* Fix file deletion to close file even if not active
|
* Fix file deletion to close file even if not active
|
||||||
* Fix file copy to work when creating a copy with the name of a previously
|
* Fix file copy to work when creating a copy with the name of a previously
|
||||||
deleted file
|
deleted file
|
||||||
|
* Fix crash that could occur after switching projects
|
||||||
* Make file picker popup accept on double click of a file
|
* Make file picker popup accept on double click of a file
|
||||||
* TileSheetEditor: Fix copy/cut/paste enablement when there is no selection
|
* TileSheetEditor: Fix copy/cut/paste enablement when there is no selection
|
||||||
* TileSheetEditor: Fix manual redo of draw actions, fix drawing to pixel 0, 0
|
* TileSheetEditor: Fix manual redo of draw actions, fix drawing to pixel 0, 0
|
||||||
|
@ -649,6 +649,9 @@ ox::Error StudioUI::openProjectPath(ox::StringParam path) noexcept {
|
|||||||
ox::make_unique_catch<Project>(keelCtx(m_tctx), std::move(path), m_projectDataDir)
|
ox::make_unique_catch<Project>(keelCtx(m_tctx), std::move(path), m_projectDataDir)
|
||||||
.moveTo(m_project));
|
.moveTo(m_project));
|
||||||
m_sctx.project = m_project.get();
|
m_sctx.project = m_project.get();
|
||||||
|
m_activeEditor = nullptr;
|
||||||
|
m_activeEditorOnLastDraw = nullptr;
|
||||||
|
m_activeEditorUpdatePending = nullptr;
|
||||||
turbine::setWindowTitle(
|
turbine::setWindowTitle(
|
||||||
m_tctx, ox::sfmt("{} - {}", keelCtx(m_tctx).appName, m_project->projectPath()));
|
m_tctx, ox::sfmt("{} - {}", keelCtx(m_tctx).appName, m_project->projectPath()));
|
||||||
m_deleteConfirmation.deleteFile.connect(m_sctx.project, &Project::deleteItem);
|
m_deleteConfirmation.deleteFile.connect(m_sctx.project, &Project::deleteItem);
|
||||||
|
Reference in New Issue
Block a user