mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Export Sprite Sheet: Select old sprite tab when the preview is unchecked
This commit is contained in:
parent
ae9a8128be
commit
ad12ec4a0d
@ -870,9 +870,12 @@ private:
|
||||
|
||||
if (!preview()->isSelected()) {
|
||||
if (m_spriteSheet) {
|
||||
DocDestroyer destroyer(UIContext::instance(), m_spriteSheet.release(), 100);
|
||||
auto ctx = UIContext::instance();
|
||||
DocDestroyer destroyer(ctx, m_spriteSheet.release(), 100);
|
||||
destroyer.destroyDocument();
|
||||
m_editor = nullptr;
|
||||
|
||||
ctx->setActiveDocument(m_site.document());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user